summaryrefslogtreecommitdiff
path: root/Python/ceval.c
AgeCommit message (Collapse)AuthorLines
2013-04-19#17413: make sure settrace funcs get passed exception instances for 'value'.R David Murray-0/+1
Patch by Ingrid Cheung and Brendan McLoughlin.
2012-08-06fix yield from return value on custom iterators (closes #15568)Benjamin Peterson-1/+1
2012-06-17Issue #13783: the PEP 380 implementation no longer expands the public C APINick Coghlan-1/+1
2012-06-01check return for errorBenjamin Peterson-0/+2
2012-05-14PEP 415: Implement suppression of __context__ display with an exception ↵Benjamin Peterson-9/+12
attribute This replaces the original PEP 409 implementation. See #14133.
2012-04-26only incref when using borrowing functionsBenjamin Peterson-1/+1
2012-04-23Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson-57/+18
Patch from Mark Shannon.
2012-04-19Fix refleak: PyObject_GetItem returns a new reference, not a borrowed one ↵Antoine Pitrou-3/+3
like PyDict_GetItem.
2012-04-19Issue #14385: Support other types than dict for __builtins__Victor Stinner-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__.
2012-04-02Guard an LLTRACE variable to silence an unused variable warning.Brett Cannon-0/+2
2012-03-26Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functionsVictor Stinner-4/+11
These functions simplify the usage of static constant Unicode strings. Generalize the usage of _Py_Identifier in ceval.c and typeobject.c.
2012-03-20use identifier apiBenjamin Peterson-1/+2
2012-03-15perform yield from delegation by repeating YIELD_FROM opcode (closes #14230)Benjamin Peterson-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.
2012-02-26Close issue #6210: Implement PEP 409Nick Coghlan-8/+9
2012-01-22use the static identifier api for looking up special methodsBenjamin Peterson-7/+8
I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
2012-01-13Fix compilation with C89 compilers (Windows...)Amaury Forgeot d'Arc-1/+1
2012-01-13NULL and no exception set from tp_iternext means StopIterationBenjamin Peterson-1/+2
2012-01-13Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan-0/+46
2011-11-25PEP 3155 / issue #13448: Qualified name for classes and functions.Antoine Pitrou-1/+3
2011-10-14Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis-2/+4
2011-10-14Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis-1/+1
2011-10-09Add API for static strings, primarily good for identifiers.Martin v. Löwis-1/+2
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-10-02ceval.c: restore str+=str optimizationVictor Stinner-3/+73
2011-09-30remove "fast-path" for (i)adding stringsBenjamin Peterson-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.
2011-10-01Remove commented code: str+=str is no more super-optimizedVictor Stinner-112/+6
2011-09-28Implement PEP 393.Martin v. Löwis-3/+14
2011-07-23Issue 12620: Make pendingbusy flag static to Py_MakePendingCalls().Charles-François Natali-4/+4
2011-07-17excise the remains of STOP_CODE, which hasn't done anything useful for yearsBenjamin Peterson-2/+0
2011-07-15merge 3.2 (#11627)Benjamin Peterson-0/+7
2011-07-15catch nasty exception classes with __new__ that doesn't return a exception ↵Benjamin Peterson-0/+7
(closes #11627) Patch from Andreas Stührk.
2011-07-03no one passes NULL here (or should anyway)Benjamin Peterson-3/+0
2011-07-03convert generator exc state functions into static functionsBenjamin Peterson-54/+62
2011-07-03merge 3.2Benjamin Peterson-4/+36
2011-07-03never retain a generator's caller's exception state on the generator after a ↵Benjamin Peterson-4/+36
yield/return This requires some trickery to properly save the exception state if the generator creates its own exception state.
2011-07-03merge 3.2 (#12475)Benjamin Peterson-4/+5
2011-07-03restore a generator's caller's exception state both on yield and (last) returnBenjamin Peterson-4/+5
This prevents generator exception state from leaking into the caller. Closes #12475.
2011-06-25map cells to arg slots at code creation time (closes #12399)Benjamin Peterson-48/+16
This removes nested loops in PyEval_EvalCodeEx.
2011-06-24give the names of missing positional or keyword-only arguments (closes #12356)Benjamin Peterson-23/+118
2011-06-05greatly improve argument parsing error messages (closes #12265)Benjamin Peterson-137/+166
2011-05-04Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou-0/+6
interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
2011-05-04Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou-0/+6
interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
2011-03-22Issue #7330, #10833: Replace %100s by %.100s and %200s by %.200sVictor Stinner-1/+1
I suppose that the author would like to truncate the type name, not get a string of 100/200 characters.
2011-03-16#11565: Merge with 3.1.Ezio Melotti-2/+2
2011-03-16#11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-2/+2
2011-03-16#11565: Merge with 3.2.Ezio Melotti-2/+2
2011-02-22Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon-2/+2
2011-02-21Remove filename variable from ceval.cVictor Stinner-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.
2011-01-06Merged revisions 87796 via svnmerge fromDavid Malcolm-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. ........
2011-01-06Issue #10655: Fix the build on PowerPC on Linux with GCC when building withDavid Malcolm-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.
2010-12-03Merge branches/pep-0384.Martin v. Löwis-3/+4