summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement PEP 393.Martin v. Löwis2011-09-281-3/+14
|
* Issue 12620: Make pendingbusy flag static to Py_MakePendingCalls().Charles-François Natali2011-07-231-4/+4
|
* excise the remains of STOP_CODE, which hasn't done anything useful for yearsBenjamin Peterson2011-07-181-2/+0
|
* merge 3.2 (#11627)Benjamin Peterson2011-07-151-0/+7
|\
| * catch nasty exception classes with __new__ that doesn't return a exception ↵Benjamin Peterson2011-07-151-0/+7
| | | | | | | | | | | | (closes #11627) Patch from Andreas Stührk.
* | no one passes NULL here (or should anyway)Benjamin Peterson2011-07-031-3/+0
| |
* | convert generator exc state functions into static functionsBenjamin Peterson2011-07-031-54/+62
| |
* | merge 3.2Benjamin Peterson2011-07-031-4/+36
|\ \ | |/
| * never retain a generator's caller's exception state on the generator after a ↵Benjamin Peterson2011-07-031-4/+36
| | | | | | | | | | | | | | yield/return This requires some trickery to properly save the exception state if the generator creates its own exception state.
* | merge 3.2 (#12475)Benjamin Peterson2011-07-031-4/+5
|\ \ | |/
| * restore a generator's caller's exception state both on yield and (last) returnBenjamin Peterson2011-07-031-4/+5
| | | | | | | | | | | | This prevents generator exception state from leaking into the caller. Closes #12475.
* | map cells to arg slots at code creation time (closes #12399)Benjamin Peterson2011-06-261-48/+16
| | | | | | | | This removes nested loops in PyEval_EvalCodeEx.
* | give the names of missing positional or keyword-only arguments (closes #12356)Benjamin Peterson2011-06-241-23/+118
| |
* | greatly improve argument parsing error messages (closes #12265)Benjamin Peterson2011-06-061-137/+166
| |
* | Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou2011-05-041-0/+6
|\ \ | |/ | | | | | | interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
| * Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou2011-05-041-0/+6
| | | | | | | | | | interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
* | Issue #7330, #10833: Replace %100s by %.100s and %200s by %.200sVictor Stinner2011-03-221-1/+1
| | | | | | | | | | I suppose that the author would like to truncate the type name, not get a string of 100/200 characters.
* | #11565: Merge with 3.2.Ezio Melotti2011-03-161-2/+2
|\ \ | |/
| * #11565: Merge with 3.1.Ezio Melotti2011-03-161-2/+2
| |\
| | * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-2/+2
| | |
| | * Merged revisions 87796 via svnmerge fromDavid Malcolm2011-01-061-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87796 | david.malcolm | 2011-01-06 12:01:36 -0500 (Thu, 06 Jan 2011) | 6 lines Issue #10655: Fix the build on PowerPC on Linux with GCC when building with timestamp profiling (--with-tsc): the preprocessor test for the PowerPC support now looks for "__powerpc__" as well as "__ppc__": the latter seems to only be present on OS X; the former is the correct one for Linux with GCC. ........
| | * Merged revisions 82181 via svnmerge fromStefan Krah2010-06-231-40/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82181 | stefan.krah | 2010-06-23 20:42:39 +0200 (Wed, 23 Jun 2010) | 3 lines Issue #8930: Remaining indentation fixes after the Grand Unified Indenting. ........
| | * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-3490/+3490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
| | * Merged revisions 78875 via svnmerge fromVictor Stinner2010-03-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78875 | victor.stinner | 2010-03-12 18:00:41 +0100 (ven., 12 mars 2010) | 5 lines Issue #6697: use %U format instead of _PyUnicode_AsString(), because _PyUnicode_AsString() was not checked for error (NULL). The unicode string is no more truncated to 200 or 400 *bytes*. ........
| | * Merged revisions 78766 via svnmerge fromBenjamin Peterson2010-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78766 | benjamin.peterson | 2010-03-07 11:10:51 -0600 (Sun, 07 Mar 2010) | 1 line prevent generator finalization from invalidating sys.exc_info() #7173 ........
| | * Merged revisions 75984 via svnmerge fromMark Dickinson2009-10-311-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r75984 | mark.dickinson | 2009-10-31 10:18:44 +0000 (Sat, 31 Oct 2009) | 12 lines Merged revisions 75982 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75982 | mark.dickinson | 2009-10-31 10:11:28 +0000 (Sat, 31 Oct 2009) | 5 lines Issue #6603: Fix --with-tsc build failures on x86-64 that resulted from a gcc inline assembler peculiarity. (gcc's "A" constraint apparently means 'rax or rdx' in 64-bit mode, not edx:eax or rdx:rax as one might expect.) ........ ................
* | | Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-221-2/+2
| | |
* | | Remove filename variable from ceval.cVictor Stinner2011-02-211-16/+0
|/ / | | | | | | | | | | | | Issue #11168: Remove filename debug variable from PyEval_EvalFrameEx(). It encoded the Unicode filename to UTF-8, but the encoding fails on undecodable filename (on surrogate characters) which raises an unexpected UnicodeEncodeError on recursion limit.
* | Issue #10655: Fix the build on PowerPC on Linux with GCC when building withDavid Malcolm2011-01-061-4/+5
| | | | | | | | | | | | timestamp profiling (--with-tsc): the preprocessor test for the PowerPC support now looks for "__powerpc__" as well as "__ppc__": the latter seems to only be present on OS X; the former is the correct one for Linux with GCC.
* | Merge branches/pep-0384.Martin v. Löwis2010-12-031-3/+4
| |
* | Remove redundant includes of headers that are already included by Python.h.Georg Brandl2010-11-301-1/+0
| |
* | make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson2010-10-171-1/+1
| |
* | ceval.c: catch recursion error on _PyUnicode_AsString(co->co_filename)Victor Stinner2010-10-131-0/+4
| |
* | revert r85003, poorly considered; breaks testsBenjamin Peterson2010-09-251-1/+1
| |
* | don't count keyword arguments as positional #9943Benjamin Peterson2010-09-251-1/+1
| |
* | Issue #9828: Destroy the GIL in Py_Finalize(), so that it gets properlyAntoine Pitrou2010-09-131-4/+9
| | | | | | | | | | re-created on a subsequent call to Py_Initialize(). The problem (a crash) wouldn't appear in 3.1 or 2.7 where the GIL's structure is more trivial.
* | typoBenjamin Peterson2010-09-101-2/+2
| |
* | use Py_REFCNTBenjamin Peterson2010-09-101-2/+2
| |
* | remove gil_drop_request in --without-threadsBenjamin Peterson2010-09-101-4/+13
| |
* | use DISPATCH() instead of continueBenjamin Peterson2010-09-101-1/+1
| |
* | #4617: Previously it was illegal to delete a name from the localAmaury Forgeot d'Arc2010-09-101-16/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | namespace if it occurs as a free variable in a nested block. This limitation of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF). This sample was valid in 2.6, but fails to compile in 3.x without this change:: >>> def f(): ... def print_error(): ... print(e) ... try: ... something ... except Exception as e: ... print_error() ... # implicit "del e" here This sample has always been invalid in Python, and now works:: >>> def outer(x): ... def inner(): ... return x ... inner() ... del x There is no need to bump the PYC magic number: the new opcode is used for code that did not compile before.
* | Issue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replacedAntoine Pitrou2010-09-041-38/+9
| | | | | | | | | | by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but our bytecode is a bit simplified. Patch by Demur Rumed.
* | Issue #9425: save/restore exception on filename encodingVictor Stinner2010-08-171-1/+6
| | | | | | | | _PyUnicode_AsString() raises an exception on unencodable filename.
* | Issue #9203: Computed gotos are now enabled by default on supportedAntoine Pitrou2010-08-131-4/+17
| | | | | | | | | | compilers (which are detected by the configure script). They can still be disable selectively by specifying --without-computed-gotos.
* | revert unintended changesBenjamin Peterson2010-07-201-8/+8
| |
* | move test_trace.py so as not to conflict with future tests for the trace moduleBenjamin Peterson2010-07-201-8/+8
| |
* | #3071: tell how many values were expected when unpacking too many.Georg Brandl2010-07-101-1/+2
| |
* | only take into account positional arguments count in related error messagesBenjamin Peterson2010-06-251-3/+3
| |
* | Issue #8930: Remaining indentation fixes after the Grand Unified Indenting.Stefan Krah2010-06-231-42/+42
| |
* | use atomic structures in non-thread versionBenjamin Peterson2010-05-301-1/+1
| |