Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert compile.c changes that shouldn't have been included in previous checkin | Nick Coghlan | 2007-08-25 | 1 | -7/+2 |
| | |||||
* | Revert misguided attempt at fixing incompatibility between -m and -i ↵ | Nick Coghlan | 2007-08-25 | 1 | -2/+7 |
| | | | | switches (better fix coming soon) | ||||
* | Second half of #1752175: #ifdef out references to PyImport_DynLoadFiletab if ↵ | Georg Brandl | 2007-08-23 | 1 | -1/+5 |
| | | | | HAVE_DYNAMIC_LOADING is not defined. | ||||
* | Fix compile.c so that it records 0.0 and -0.0 as separate constants in a code | Alex Martelli | 2007-08-22 | 1 | -1/+14 |
| | | | | | object's co_consts tuple; add a test to show that the previous behavior (where these two constants were "collapsed" into one) causes serious malfunctioning. | ||||
* | Revert accidental checkins from last commit. | Georg Brandl | 2007-08-21 | 1 | -10/+0 |
| | |||||
* | Demand version 2.5.1 since 2.5 has a bug with codecs.open context managers. | Georg Brandl | 2007-08-21 | 1 | -0/+10 |
| | |||||
* | Place #ifdef Py_USING_UNICODE around decode_unicode(). | Georg Brandl | 2007-08-06 | 1 | -0/+2 |
| | |||||
* | Handle errors when generating a warning. | Neal Norwitz | 2007-08-05 | 1 | -30/+31 |
| | | | | | | | | The value is always written to the returned pointer if getting it was successful, even if a warning causes an error. (This probably doesn't matter as the caller will probably discard the value.) Will backport. | ||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 4 | -7/+4 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors. | Guido van Rossum | 2007-07-18 | 1 | -2/+19 |
| | | | | (Slightly tweaked for style and refcounts.) | ||||
* | 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. |