Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Handle a couple of uncaught errors. This should be backported | Neal Norwitz | 2007-05-03 | 1 | -0/+4 |
| | |||||
* | Actually raise an exception before calling ast_error_finish. | Georg Brandl | 2007-05-02 | 1 | -0/+2 |
| | | | | Triggers an assertion otherwise. | ||||
* | Remove obsolete comment. Importing of .dll files has been discontinued, only ↵ | Kristján Valur Jónsson | 2007-04-25 | 1 | -8/+0 |
| | | | | .pyd files supported on windows now. | ||||
* | Make pythoncore compile cleanly with VisualStudio 2005. Used an explicit ↵ | Kristján Valur Jónsson | 2007-04-25 | 2 | -0/+2 |
| | | | | typecast to get a 64 bit integer, and undefined the Yield macro that conflicts with winbase.h | ||||
* | Merge change 54909 from release25-maint: Fix several minor issues ↵ | Kristján Valur Jónsson | 2007-04-25 | 1 | -3/+3 |
| | | | | discovered using code analysis in VisualStudio 2005 Team Edition | ||||
* | SF #1701207, Fix bogus assertion (and test it!) | Neal Norwitz | 2007-04-16 | 1 | -2/+2 |
| | |||||
* | Fix a bug when using the __lltrace__ opcode tracer, and a problem sith ↵ | Kristján Valur Jónsson | 2007-04-13 | 1 | -1/+1 |
| | | | | signed chars in frameobject.c which can occur with opcodes > 127 | ||||
* | Patch #1682205: a TypeError while unpacking an iterable is no longer | Georg Brandl | 2007-03-21 | 1 | -5/+3 |
| | | | | masked by a generic one with the message "unpack non-sequence". | ||||
* | Remove unused file spotted by Paul Hankin | Neal Norwitz | 2007-03-21 | 1 | -27/+0 |
| | |||||
* | Clean up formatting of this file. | Jeremy Hylton | 2007-03-16 | 1 | -2029/+2048 |
| | | | | | | | | | | The file should now follow PEP 7, except that it uses 4 space indents (in the style of Py3k). This particular code would be really hard to read with the regular tab idents. Other changes: - reflow long lines - change multi-line conditionals to have test at end of line | ||||
* | Patch #1642547: Fix an error/crash when encountering syntax errors in ↵ | Collin Winter | 2007-03-16 | 1 | -14/+26 |
| | | | | | | complex if statements. Will backport. | ||||
* | Inline PyImport_GetModulesReloading(). | Collin Winter | 2007-03-13 | 1 | -11/+8 |
| | |||||
* | Patch #1444529: the builtin compile() now accepts keyword arguments. | Georg Brandl | 2007-03-13 | 1 | -4/+7 |
| | | | | (backport) | ||||
* | Typo and grammar fixes. | Georg Brandl | 2007-03-13 | 1 | -1/+1 |
| | |||||
* | Fix some style nits: | Neal Norwitz | 2007-03-13 | 1 | -13/+15 |
| | | | | | | | | | | * lines too long * wrong indentation * space after a function name * wrong function name in error string * simplifying some logic Also add an error check to PyDict_SetItemString. | ||||
* | Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. ↵ | Collin Winter | 2007-03-12 | 3 | -2/+41 |
| | | | | | | Fixed by patch #922167. Will backport. | ||||
* | Bug #1678647: write a newline after printing an exception in any | Georg Brandl | 2007-03-12 | 1 | -2/+2 |
| | | | | case, even when converting the value to a string failed. | ||||
* | Backport from Py3k branch: | Georg Brandl | 2007-03-12 | 1 | -9/+10 |
| | | | | | | | Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir. Had to change a few bits of the patch because classobjs and __methods__ are still in Py2.6. | ||||
* | Typos. | Georg Brandl | 2007-03-10 | 1 | -1/+1 |
| | |||||
* | Patch #703779: unset __file__ in __main__ after running a file. This | Georg Brandl | 2007-03-07 | 1 | -3/+11 |
| | | | | | makes the filenames the warning module prints much more sensible when a PYTHONSTARTUP file is used. | ||||
* | Variant of patch #697613: don't exit the interpreter on a SystemExit | Georg Brandl | 2007-03-07 | 1 | -0/+6 |
| | | | | | | | exception if the -i command line option or PYTHONINSPECT environment variable is given, but break into the interactive interpreter just like on other exceptions or normal program exit. (backport) | ||||
* | Bug #1674503: close the file opened by execfile() in an error condition. | Georg Brandl | 2007-03-06 | 1 | -2/+2 |
| | |||||
* | Patch #1674228: when assigning a slice (old-style), check for the | Georg Brandl | 2007-03-05 | 1 | -1/+1 |
| | | | | sq_ass_slice instead of the sq_slice slot. | ||||
* | Fix embarrassing typo and fix constantification of None | Raymond Hettinger | 2007-03-02 | 1 | -6/+10 |
| | |||||
* | tabify | Jeremy Hylton | 2007-02-27 | 2 | -2039/+2039 |
| | | | | | Note that ast.c still has a mix of tabs and spaces, because it attempts to use four-space indents for more of the new code. | ||||
* | Fix long-standing bug in name mangling for package imports | Jeremy Hylton | 2007-02-27 | 1 | -2/+12 |
| | | | | Reported by Mike Verdone. | ||||
* | SF #1669182, 2.5 was already fixed. Just assert in 2.6 since string exceptions | Neal Norwitz | 2007-02-26 | 1 | -2/+3 |
| | | | | are gone. | ||||
* | When printing an unraisable error, don't print exceptions. before the name. | Neal Norwitz | 2007-02-26 | 1 | -1/+2 |
| | | | | This duplicates the behavior whening normally printing exceptions. | ||||
* | Fix a couple of problems in generating the AST code: | Neal Norwitz | 2007-02-26 | 1 | -166/+56 |
| | | | | | | * use %r instead of backticks since backticks are going away in Py3k * PyArena_Malloc() already sets PyErr_NoMemory so we don't need to do it again * the signature for ast2obj_int incorrectly used a bool, rather than a long | ||||
* | Reformat long lines. | Jeremy Hylton | 2007-02-26 | 1 | -2/+4 |
| | |||||
* | Put declarations before code. | Jeremy Hylton | 2007-02-25 | 1 | -1/+1 |
| | |||||
* | Fix crash in exec when unicode filename can't be decoded. | Jeremy Hylton | 2007-02-25 | 1 | -0/+2 |
| | | | | | | | I can't think of an easy way to test this behavior. It only occurs when the file system default encoding and the interpreter default encoding are different, such that you can open the file but not decode its name. | ||||
* | Modify Parser/asdl_c.py so that the __version__ number for Python/Python-ast.c | Brett Cannon | 2007-02-12 | 1 | -1/+10 |
| | | | | | | is specified at the top of the file. Also add a note that Python/Python-ast.c needs to be committed separately after a change to the AST grammar to capture the revision number of the change (which is what __version__ is set to). | ||||
* | Check in changed Python-ast.c from a cosmetic change to Python.asdl (in | Brett Cannon | 2007-02-11 | 1 | -1/+1 |
| | | | | r53731). | ||||
* | No more raising of string exceptions! | Brett Cannon | 2007-01-30 | 1 | -13/+34 |
| | | | | | | | The next step of PEP 352 (for 2.6) causes raising a string exception to trigger a TypeError. Trying to catch a string exception raises a DeprecationWarning. References to string exceptions has been removed from the docs since they are now just an error. | ||||
* | Make PyTraceBack_Here use the current thread, not the | Martin v. Löwis | 2007-01-23 | 1 | -1/+1 |
| | | | | | frame's thread state. Fixes #1579370. Will backport. | ||||
* | SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize | Thomas Wouters | 2007-01-23 | 2 | -6/+9 |
| | | | | | | | | | | | When running the interpreter in an environment that would cause it to set stdout/stderr/stdin's encoding, having a sitecustomize that would replace them with something other than PyFile objects would crash the interpreter. Fix it by simply ignoring the encoding-setting for non-files. This could do with a test, but I can think of no maintainable and portable way to test this bug, short of adding a sitecustomize.py to the buildsystem and have it always run with it (hmmm....) | ||||
* | update to (c) years to include 2007 | Anthony Baxter | 2007-01-06 | 1 | -1/+1 |
| | |||||
* | SF# 1409443: Expand comment to cover the interaction between f->f_lasti and ↵ | Raymond Hettinger | 2007-01-06 | 1 | -1/+10 |
| | | | | the PREDICT macros. | ||||
* | Prevent crash on shutdown which can occur if we are finalizing | Neal Norwitz | 2007-01-05 | 1 | -1/+2 |
| | | | | | | | and the module dict has been cleared already and some object raises a warning (like in a __del__). Will backport. | ||||
* | Forgot a case where the locals can now be a general mapping | Armin Rigo | 2006-11-29 | 1 | -1/+3 |
| | | | | instead of just a dictionary. (backporting...) | ||||
* | Bug #1588287: fix invalid assertion for `1,2` in debug builds. | Neal Norwitz | 2006-11-04 | 1 | -0/+1 |
| | | | | Will backport | ||||
* | Update comments, remove commented out code. | Neal Norwitz | 2006-10-29 | 1 | -87/+31 |
| | | | | | Move assembler structure next to assembler code to make it easier to move it to a separate file. | ||||
* | Clean up a leftover from old listcomp generation code. | Georg Brandl | 2006-10-29 | 1 | -7/+1 |
| | |||||
* | Fix bug #1565514, SystemError not raised on too many nested blocks. | Neal Norwitz | 2006-10-28 | 1 | -1/+4 |
| | | | | | | | It seems like this should be a different error than SystemError, but I don't have any great ideas and SystemError was raised in 2.4 and earlier. Will backport. | ||||
* | Add some asserts. In sysmodule, I think these were to try to silence | Neal Norwitz | 2006-10-28 | 1 | -0/+4 |
| | | | | | | | some warnings from Klokwork. They verify the assumptions of the format of svn version output. The assert in the thread module helped debug a problem on HP-UX. | ||||
* | [Bug #1542016] Report PCALL_POP value. This makes the return value of ↵ | Andrew M. Kuchling | 2006-10-27 | 1 | -2/+2 |
| | | | | | | | sys.callstats() match its docstring. Backport candidate. Though it's an API change, this is a pretty obscure portion of the API. | ||||
* | Patch #1549049: Rewrite type conversion in structmember. | Martin v. Löwis | 2006-10-27 | 1 | -53/+91 |
| | | | | Fixes #1545696 and #1566140. Will backport to 2.5. | ||||
* | Update the peephole optimizer to remove more dead code (jumps after returns) | Neal Norwitz | 2006-10-14 | 2 | -5/+17 |
| | | | | and inline jumps to returns. | ||||
* | Bug #1283491: follow docstring convention wrt. keyword-able args in sum(). | Georg Brandl | 2006-10-12 | 1 | -2/+3 |
| |