Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add T_PYSSIZET in structmember.h: This can be used for | Walter Dörwald | 2007-06-13 | 1 | -0/+10 |
| | | | | | | | | | Py_ssize_t members. Simplify the implementation of UnicodeError objects: start and end attributes are now stored directly as Py_ssize_t members, which simplifies various get and set functions. | ||||
* | Patch #1733960: Allow T_LONGLONG to accept ints. | Martin v. Löwis | 2007-06-09 | 1 | -24/+18 |
| | | | | Will backport to 2.5. | ||||
* | Use macro version of GET_SIZE to avoid Coverity warning (#150) about a ↵ | Neal Norwitz | 2007-06-09 | 1 | -1/+1 |
| | | | | possible error. | ||||
* | Disallow function calls like foo(None=1). | Georg Brandl | 2007-06-07 | 1 | -0/+4 |
| | | | | Backport from py3k rev. 55708 by Guido. | ||||
* | Bug #1722484: remove docstrings again when running with -OO. | Georg Brandl | 2007-06-01 | 1 | -1/+2 |
| | |||||
* | Fix indentation (whitespace only). | Neal Norwitz | 2007-05-30 | 1 | -2/+2 |
| | |||||
* | Include <windows.h> after python.h, so that WINNT is properly set before ↵ | Kristján Valur Jónsson | 2007-05-26 | 1 | -1/+1 |
| | | | | windows.h is included. Fixes warnings in PC builds. | ||||
* | Add a bunch more deprecation warnings for builtins that are going away in 3.0 | Neal Norwitz | 2007-05-23 | 1 | -0/+24 |
| | |||||
* | Add -3 option to the interpreter to warn about features that are | Neal Norwitz | 2007-05-23 | 1 | -0/+5 |
| | | | | | | | deprecated and will be changed/removed in Python 3.0. This patch is mostly from Anthony. I tweaked some format and added a little doc. | ||||
* | Patch #1686487: you can now pass any mapping after '**' in function calls. | Georg Brandl | 2007-05-21 | 1 | -10/+29 |
| | |||||
* | Backport PEP 3110's new 'except' syntax to 2.6. | Collin Winter | 2007-05-18 | 2 | -3/+4 |
| | |||||
* | Last try for tweaking the max stack depth. 5000 was the original value, | Neal Norwitz | 2007-05-17 | 1 | -1/+1 |
| | | | | | 4000 didn't work either. 1000 does work on Windows. If 2000 works, that will hopefully be a reasonable balance. | ||||
* | Set the depth to something very small to try to determine if the | Neal Norwitz | 2007-05-17 | 1 | -1/+1 |
| | | | | | crashes on Windows are really due to the stack size or possibly some other problem. | ||||
* | Reduce the max stack depth to see if this fixes the segfaults on | Neal Norwitz | 2007-05-17 | 1 | -1/+1 |
| | | | | | Windows and some other boxes. If this is successful, this rev should be backported. I'm not sure how close to the limit we should push this. | ||||
* | Fix bug in marshal where bad data would cause a segfault due to | Neal Norwitz | 2007-05-16 | 1 | -69/+156 |
| | | | | | | lack of an infinite recursion check. Contributed by Damien Miller at Google. | ||||
* | Remove an XXX that is unnecessary. | Georg Brandl | 2007-05-11 | 1 | -1/+0 |
| | |||||
* | Fix problems in x64 build that were discovered by the testsuite: | Kristján Valur Jónsson | 2007-05-03 | 1 | -58/+5 |
| | | | | | | | | | | | | - Reenable modules on x64 that had been disabled aeons ago for Itanium. - Cleared up confusion about compilers for 64 bit windows. There is only Itanium and x64. Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above. - Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms. - Fixed thread_nt.h. The emulated InterlockedCompareExchange function didn´t work on x64, probaby due to the lack of a "volatile" specifier. Anyway, win95 is no longer a target platform. - Itertools module used wrong constant to check for overflow in count() - PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member. - PyLong_FromSsize_t() incorrectly specified that the operand were unsigned. With these changes, the x64 passes the testsuite, for those modules present. | ||||
* | 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). |