summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* Check in changed Python-ast.c from a cosmetic change to Python.asdl (inBrett Cannon2007-02-111-1/+1
| | | | r53731).
* No more raising of string exceptions!Brett Cannon2007-01-301-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 theMartin v. Löwis2007-01-231-1/+1
| | | | | frame's thread state. Fixes #1579370. Will backport.
* SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomizeThomas Wouters2007-01-232-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 2007Anthony Baxter2007-01-061-1/+1
|
* SF# 1409443: Expand comment to cover the interaction between f->f_lasti and ↵Raymond Hettinger2007-01-061-1/+10
| | | | the PREDICT macros.
* Prevent crash on shutdown which can occur if we are finalizingNeal Norwitz2007-01-051-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 mappingArmin Rigo2006-11-291-1/+3
| | | | instead of just a dictionary. (backporting...)
* Bug #1588287: fix invalid assertion for `1,2` in debug builds.Neal Norwitz2006-11-041-0/+1
| | | | Will backport