summaryrefslogtreecommitdiff
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Add T_PYSSIZET in structmember.h: This can be used forWalter Dörwald2007-06-131-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öwis2007-06-091-24/+18
| | | | Will backport to 2.5.
* Use macro version of GET_SIZE to avoid Coverity warning (#150) about a ↵Neal Norwitz2007-06-091-1/+1
| | | | possible error.
* Disallow function calls like foo(None=1).Georg Brandl2007-06-071-0/+4
| | | | Backport from py3k rev. 55708 by Guido.
* Bug #1722484: remove docstrings again when running with -OO.Georg Brandl2007-06-011-1/+2
|
* Fix indentation (whitespace only).Neal Norwitz2007-05-301-2/+2
|
* Include <windows.h> after python.h, so that WINNT is properly set before ↵Kristján Valur Jónsson2007-05-261-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.0Neal Norwitz2007-05-231-0/+24
|
* Add -3 option to the interpreter to warn about features that areNeal Norwitz2007-05-231-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 Brandl2007-05-211-10/+29
|
* Backport PEP 3110's new 'except' syntax to 2.6.Collin Winter2007-05-182-3/+4
|
* Last try for tweaking the max stack depth. 5000 was the original value,Neal Norwitz2007-05-171-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 theNeal Norwitz2007-05-171-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 onNeal Norwitz2007-05-171-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 toNeal Norwitz2007-05-161-69/+156
| | | | | | lack of an infinite recursion check. Contributed by Damien Miller at Google.
* Remove an XXX that is unnecessary.Georg Brandl2007-05-111-1/+0
|
* Fix problems in x64 build that were discovered by the testsuite:Kristján Valur Jónsson2007-05-031-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 backportedNeal Norwitz2007-05-031-0/+4
|
* Actually raise an exception before calling ast_error_finish.Georg Brandl2007-05-021-0/+2
| | | | Triggers an assertion otherwise.
* Remove obsolete comment. Importing of .dll files has been discontinued, only ↵Kristján Valur Jónsson2007-04-251-8/+0
| | | | .pyd files supported on windows now.
* Make pythoncore compile cleanly with VisualStudio 2005. Used an explicit ↵Kristján Valur Jónsson2007-04-252-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ónsson2007-04-251-3/+3
| | | | discovered using code analysis in VisualStudio 2005 Team Edition
* SF #1701207, Fix bogus assertion (and test it!)Neal Norwitz2007-04-161-2/+2
|
* Fix a bug when using the __lltrace__ opcode tracer, and a problem sith ↵Kristján Valur Jónsson2007-04-131-1/+1
| | | | signed chars in frameobject.c which can occur with opcodes > 127
* Patch #1682205: a TypeError while unpacking an iterable is no longerGeorg Brandl2007-03-211-5/+3
| | | | masked by a generic one with the message "unpack non-sequence".
* Remove unused file spotted by Paul HankinNeal Norwitz2007-03-211-27/+0
|
* Clean up formatting of this file.Jeremy Hylton2007-03-161-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 Winter2007-03-161-14/+26
| | | | | | complex if statements. Will backport.
* Inline PyImport_GetModulesReloading().Collin Winter2007-03-131-11/+8
|
* Patch #1444529: the builtin compile() now accepts keyword arguments.Georg Brandl2007-03-131-4/+7
| | | | (backport)
* Typo and grammar fixes.Georg Brandl2007-03-131-1/+1
|
* Fix some style nits:Neal Norwitz2007-03-131-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 Winter2007-03-123-2/+41
| | | | | | Fixed by patch #922167. Will backport.
* Bug #1678647: write a newline after printing an exception in anyGeorg Brandl2007-03-121-2/+2
| | | | case, even when converting the value to a string failed.
* Backport from Py3k branch:Georg Brandl2007-03-121-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 Brandl2007-03-101-1/+1
|
* Patch #703779: unset __file__ in __main__ after running a file. ThisGeorg Brandl2007-03-071-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 SystemExitGeorg Brandl2007-03-071-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 Brandl2007-03-061-2/+2
|
* Patch #1674228: when assigning a slice (old-style), check for theGeorg Brandl2007-03-051-1/+1
| | | | sq_ass_slice instead of the sq_slice slot.
* Fix embarrassing typo and fix constantification of NoneRaymond Hettinger2007-03-021-6/+10
|
* tabifyJeremy Hylton2007-02-272-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 importsJeremy Hylton2007-02-271-2/+12
| | | | Reported by Mike Verdone.
* SF #1669182, 2.5 was already fixed. Just assert in 2.6 since string exceptionsNeal Norwitz2007-02-261-2/+3
| | | | are gone.
* When printing an unraisable error, don't print exceptions. before the name.Neal Norwitz2007-02-261-1/+2
| | | | This duplicates the behavior whening normally printing exceptions.
* Fix a couple of problems in generating the AST code:Neal Norwitz2007-02-261-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 Hylton2007-02-261-2/+4
|
* Put declarations before code.Jeremy Hylton2007-02-251-1/+1
|
* Fix crash in exec when unicode filename can't be decoded.Jeremy Hylton2007-02-251-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.cBrett Cannon2007-02-121-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).