summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at ↵Antoine Pitrou2013-10-071-2/+2
| | | | least one place so as to avoid regressions.
* Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()Christian Heimes2013-07-201-1/+3
| | | | CID 486647
* when arguments are cells clear the locals slot (backport of #17927)Benjamin Peterson2013-05-151-2/+6
|
* #17413: make sure settrace funcs get passed exception instances for 'value'.R David Murray2013-04-191-0/+1
| | | | Patch by Ingrid Cheung and Brendan McLoughlin.
* fix yield from return value on custom iterators (closes #15568)Benjamin Peterson2012-08-071-1/+1
|
* Issue #13783: the PEP 380 implementation no longer expands the public C APINick Coghlan2012-06-171-1/+1
|
* check return for errorBenjamin Peterson2012-06-011-0/+2
|
* PEP 415: Implement suppression of __context__ display with an exception ↵Benjamin Peterson2012-05-151-9/+12
| | | | | | attribute This replaces the original PEP 409 implementation. See #14133.
* only incref when using borrowing functionsBenjamin Peterson2012-04-261-1/+1
|
* Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-231-57/+18
| | | | Patch from Mark Shannon.
* Fix refleak: PyObject_GetItem returns a new reference, not a borrowed one ↵Antoine Pitrou2012-04-191-3/+3
| | | | like PyDict_GetItem.
* Issue #14385: Support other types than dict for __builtins__Victor Stinner2012-04-181-48/+94
| | | | | | It is now possible to use a custom type for the __builtins__ namespace, instead of a dict. It can be used for sandboxing for example. Raise also a NameError instead of ImportError if __build_class__ name if not found in __builtins__.
* Guard an LLTRACE variable to silence an unused variable warning.Brett Cannon2012-04-021-0/+2
|
* Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functionsVictor Stinner2012-03-261-4/+11
| | | | | These functions simplify the usage of static constant Unicode strings. Generalize the usage of _Py_Identifier in ceval.c and typeobject.c.
* use identifier apiBenjamin Peterson2012-03-211-1/+2
|
* perform yield from delegation by repeating YIELD_FROM opcode (closes #14230)Benjamin Peterson2012-03-151-35/+23
| | | | | | | This allows generators that are using yield from to be seen by debuggers. It also kills the f_yieldfrom field on frame objects. Patch mostly from Mark Shannon with a few tweaks by me.
* Close issue #6210: Implement PEP 409Nick Coghlan2012-02-261-8/+9
|
* use the static identifier api for looking up special methodsBenjamin Peterson2012-01-221-7/+8
| | | | | I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
* Fix compilation with C89 compilers (Windows...)Amaury Forgeot d'Arc2012-01-131-1/+1
|
* NULL and no exception set from tp_iternext means StopIterationBenjamin Peterson2012-01-131-1/+2
|
* Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan2012-01-131-0/+46
|
* PEP 3155 / issue #13448: Qualified name for classes and functions.Antoine Pitrou2011-11-251-1/+3
|
* Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis2011-10-141-2/+4
|
* Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
|
* Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-1/+2
| | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* ceval.c: restore str+=str optimizationVictor Stinner2011-10-021-3/+73
|
* remove "fast-path" for (i)adding stringsBenjamin Peterson2011-10-011-8/+2
| | | | | | These were just an artifact of the old unicode concatenation hack and likely just penalized other kinds of adding. Also, this fixes __(i)add__ on string subclasses.
* Remove commented code: str+=str is no more super-optimizedVictor Stinner2011-09-301-112/+6
|
* 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. ........