Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Issue #17934: Add a clear() method to frame objects, to help clean up ↵ | Antoine Pitrou | 2013-08-05 | 1 | -0/+2 | |
| | | | | | | | | expensive details (local variables) and break reference cycles. | |||||
* | | Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx() | Christian Heimes | 2013-07-20 | 1 | -1/+3 | |
|\ \ | |/ | | | | | CID 486647 | |||||
| * | Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx() | Christian Heimes | 2013-07-20 | 1 | -1/+3 | |
| | | | | | | | | CID 486647 | |||||
| * | when arguments are cells clear the locals slot (backport of #17927) | Benjamin Peterson | 2013-05-15 | 1 | -2/+6 | |
| | | ||||||
* | | Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now fail | Victor Stinner | 2013-07-17 | 1 | -0/+26 | |
| | | | | | | | | | | | | | | | | | | | | | | | | with an assertion error if they are called with an exception set (PyErr_Occurred()). If these functions are called with an exception set, the exception may be cleared and so the caller looses its exception. Add also assertions to PyEval_CallObjectWithKeywords() and call_function() to check if the function succeed with no exception set, or the function failed with an exception set. | |||||
* | | Issue #18408: add more assertions on PyErr_Occurred() in ceval.c to detect bugs | Victor Stinner | 2013-07-15 | 1 | -0/+4 | |
| | | | | | | | | earlier | |||||
* | | Issue #18408: Fix PyEval_EvalFrameEx() for MemoryError | Victor Stinner | 2013-07-15 | 1 | -1/+4 | |
| | | | | | | | | | | Don't pass a NULL traceback to PyException_SetTraceback(): pass Py_None. Passing NULL would raise a new exception. | |||||
* | | Issue #18342: Use the repr of a module name for ``from ... import | Brett Cannon | 2013-07-12 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | ...`` when an ImportError occurs. Other cases had already been switched over to using the repr. Thanks to Tomasz Maćkowiak for the patch. | |||||
* | | Issue #18408: ceval.c: in debug mode, convert the PyErr_Occurred() check on | Victor Stinner | 2013-07-11 | 1 | -0/+4 | |
| | | | | | | | | exception (when getting NULL) to an assertion to detect bugs earlier | |||||
* | | Issue #18408: Fix call_exc_trace(): if the traceback is NULL, use None when | Victor Stinner | 2013-07-10 | 1 | -3/+8 | |
| | | | | | | | | | | | | building the tuple (type, value, traceback) passed to the callback. PyTuple_Pack() does crash if an argument is NULL. | |||||
* | | Issue #18408: Fix call_function() of ceval.c to handle PyTuple_New() failure | Victor Stinner | 2013-07-08 | 1 | -4/+9 | |
| | | | | | | | | (in load_args()), ex: MemoryError. | |||||
* | | Issue #15767: back out 8a0ed9f63c6e, finishing the removal of | Brett Cannon | 2013-07-04 | 1 | -1/+1 | |
| | | | | | | | | ModuleNotFoundError. | |||||
* | | Issue #15767: Introduce ModuleNotFoundError, a subclass of | Brett Cannon | 2013-06-12 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ImportError. The exception is raised by import when a module could not be found. Technically this is defined as no viable loader could be found for the specified module. This includes ``from ... import`` statements so that the module usage is consistent for all situations where import couldn't find what was requested. This should allow for the common idiom of:: try: import something except ImportError: pass to be updated to using ModuleNotFoundError and not accidentally mask ImportError messages that should propagate (e.g. issues with a loader). This work was driven by the fact that the ``from ... import`` statement needed to be able to tell the difference between an ImportError that simply couldn't find a module (and thus silence the exception so that ceval can raise it) and an ImportError that represented an actual problem. | |||||
* | | Fix a compilater warning on Windows 64-bit | Victor Stinner | 2013-05-16 | 1 | -1/+1 | |
| | | | | | | | | idx variable is used for a tuple indexn so use Py_ssize_t (not int). | |||||
* | | rather than passing locals to the class body, just execute the class body in ↵ | Benjamin Peterson | 2013-05-16 | 1 | -8/+0 | |
| | | | | | | | | the proper environment | |||||
* | | when an argument is a cell, set the local copy to NULL (see #17927) | Benjamin Peterson | 2013-05-12 | 1 | -8/+4 | |
| | | ||||||
* | | #17927: Keep frame from referencing cell-ified arguments. | Guido van Rossum | 2013-05-10 | 1 | -4/+12 | |
| | | ||||||
* | | Issue #17094: Clear stale thread states after fork(). | Antoine Pitrou | 2013-05-05 | 1 | -8/+10 | |
| | | | | | | | | | | | | | | Note that this is a potentially disruptive change since it may release some system resources which would otherwise remain perpetually alive (e.g. database connections kept in thread-local storage). | |||||
* | | check local class namespace before reaching for cells (closes #17853) | Benjamin Peterson | 2013-04-30 | 1 | -0/+33 | |
| | | ||||||
* | | Merge #17413: make sure settrace funcs get passed exception instances for ↵ | R David Murray | 2013-04-19 | 1 | -0/+1 | |
|\ \ | |/ | | | | | | | | | 'value'. Patch by Ingrid Cheung and Brendan McLoughlin. | |||||
| * | #17413: make sure settrace funcs get passed exception instances for 'value'. | R David Murray | 2013-04-19 | 1 | -0/+1 | |
| | | | | | | | | Patch by Ingrid Cheung and Brendan McLoughlin. | |||||
* | | #17032: The "global" in the "NameError: global name 'x' is not defined" ↵ | Ezio Melotti | 2013-03-03 | 1 | -5/+3 | |
| | | | | | | | | error message has been removed. Patch by Ram Rachum. | |||||
* | | evaluate positional defaults before keyword-only defaults (closes #16967) | Benjamin Peterson | 2013-02-10 | 1 | -17/+17 | |
| | | ||||||
* | | revert #16672 for incorrect semantics | Benjamin Peterson | 2013-01-23 | 1 | -4/+3 | |
| | | ||||||
* | | improve tracing performance when f_trace is NULL (closes #16672) | Benjamin Peterson | 2012-12-24 | 1 | -3/+4 | |
| | | | | | | | | Patch by Xavier de Gaye. | |||||
* | | use error label instead of breaking eval loop (closes #16693) | Benjamin Peterson | 2012-12-15 | 1 | -3/+2 | |
| | | ||||||
* | | move more variable declarations to the top of blocks | Benjamin Peterson | 2012-10-12 | 1 | -3/+4 | |
| | | ||||||
* | | move declaration to top of block | Benjamin Peterson | 2012-10-12 | 1 | -1/+1 | |
| | | ||||||
* | | ceval cleanup | Benjamin Peterson | 2012-10-12 | 1 | -1012/+1088 | |
| | | | | | | | | | | | | | | | | | | - Make many variables local to the opcode; Kill u, v, w, and x. - Force every opcode to end with DISPATCH or jump to error handling. - Simplify error handling. - Check error statuses in more places. Closes #16191. | |||||
* | | add some missing DISPATCH() | Benjamin Peterson | 2012-10-10 | 1 | -9/+16 | |
|/ | ||||||
* | fix yield from return value on custom iterators (closes #15568) | Benjamin Peterson | 2012-08-07 | 1 | -1/+1 | |
| | ||||||
* | Issue #13783: the PEP 380 implementation no longer expands the public C API | Nick Coghlan | 2012-06-17 | 1 | -1/+1 | |
| | ||||||
* | check return for error | Benjamin Peterson | 2012-06-01 | 1 | -0/+2 | |
| | ||||||
* | PEP 415: Implement suppression of __context__ display with an exception ↵ | Benjamin Peterson | 2012-05-15 | 1 | -9/+12 | |
| | | | | | | attribute This replaces the original PEP 409 implementation. See #14133. | |||||
* | only incref when using borrowing functions | Benjamin Peterson | 2012-04-26 | 1 | -1/+1 | |
| | ||||||
* | Implement PEP 412: Key-sharing dictionaries (closes #13903) | Benjamin Peterson | 2012-04-23 | 1 | -57/+18 | |
| | | | | Patch from Mark Shannon. | |||||
* | Fix refleak: PyObject_GetItem returns a new reference, not a borrowed one ↵ | Antoine Pitrou | 2012-04-19 | 1 | -3/+3 | |
| | | | | like PyDict_GetItem. | |||||
* | Issue #14385: Support other types than dict for __builtins__ | Victor Stinner | 2012-04-18 | 1 | -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 Cannon | 2012-04-02 | 1 | -0/+2 | |
| | ||||||
* | Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions | Victor Stinner | 2012-03-26 | 1 | -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 api | Benjamin Peterson | 2012-03-21 | 1 | -1/+2 | |
| | ||||||
* | perform yield from delegation by repeating YIELD_FROM opcode (closes #14230) | Benjamin Peterson | 2012-03-15 | 1 | -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 409 | Nick Coghlan | 2012-02-26 | 1 | -8/+9 | |
| | ||||||
* | use the static identifier api for looking up special methods | Benjamin Peterson | 2012-01-22 | 1 | -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'Arc | 2012-01-13 | 1 | -1/+1 | |
| | ||||||
* | NULL and no exception set from tp_iternext means StopIteration | Benjamin Peterson | 2012-01-13 | 1 | -1/+2 | |
| | ||||||
* | Implement PEP 380 - 'yield from' (closes #11682) | Nick Coghlan | 2012-01-13 | 1 | -0/+46 | |
| | ||||||
* | PEP 3155 / issue #13448: Qualified name for classes and functions. | Antoine Pitrou | 2011-11-25 | 1 | -1/+3 | |
| | ||||||
* | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId. | Martin v. Löwis | 2011-10-14 | 1 | -2/+4 | |
| | ||||||
* | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -1/+1 | |
| |