Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move exc state to generator. Fixes bpo-25612 (#1773) | Mark Shannon | 2017-10-22 | 1 | -0/+1 |
| | | | Move exception state information from frame objects to coroutine (generator/thread) object where it belongs. | ||||
* | Delete sigcheck.c since it appears unused (#1723) | Segev Finer | 2017-05-25 | 1 | -1/+1 |
| | |||||
* | Issue #29058: All stable API extensions added after Python 3.2 are now | Serhiy Storchaka | 2016-12-27 | 1 | -3/+18 |
|\ | | | | | | | | | available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python version supporting this API. | ||||
| * | Issue #29058: All stable API extensions added after Python 3.2 are now | Serhiy Storchaka | 2016-12-27 | 1 | -3/+18 |
| | | | | | | | | | | available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python version supporting this API. | ||||
* | | Issue #19569: Compiler warnings are now emitted if use most of deprecated | Serhiy Storchaka | 2016-11-20 | 1 | -5/+5 |
|/ | | | | functions. | ||||
* | Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising | Serhiy Storchaka | 2016-10-21 | 1 | -0/+11 |
| | | | | | | | | new exception with setting current exception as __cause__. _PyErr_FormatFromCause(exception, format, args...) is equivalent to Python raise exception(format % args) from sys.exc_info()[1] | ||||
* | Issue #15767: Use ModuleNotFoundError. | Eric Snow | 2016-09-07 | 1 | -0/+3 |
| | |||||
* | Issue #15767: Add ModuleNotFoundError. | Eric Snow | 2016-09-07 | 1 | -0/+1 |
| | |||||
* | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. | Yury Selivanov | 2015-07-03 | 1 | -0/+1 |
| | |||||
* | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-12 | 1 | -0/+1 |
| | |||||
* | Issue #22869: Split pythonrun into two modules | Nick Coghlan | 2014-11-20 | 1 | -0/+1 |
| | | | | | | | - interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags | ||||
* | Issue #21715: Extracted shared complicated code in the _io module to new | Serhiy Storchaka | 2014-10-08 | 1 | -1/+3 |
|\ | | | | | | | _PyErr_ChainExceptions() function. | ||||
| * | Issue #21715: Extracted shared complicated code in the _io module to new | Serhiy Storchaka | 2014-10-08 | 1 | -1/+3 |
| | | | | | | | | _PyErr_ChainExceptions() function. | ||||
* | | Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` ↵ | Antoine Pitrou | 2014-09-30 | 1 | -0/+6 |
|/ | | | | but accepting a `va_list` argument. | ||||
* | Issue #20517: Removed unnecessary new (short-lived) functions from PyErr. | Larry Hastings | 2014-02-10 | 1 | -25/+0 |
| | |||||
* | Issue #20517: Functions in the os module that accept two filenames | Larry Hastings | 2014-02-10 | 1 | -0/+30 |
| | | | | | | now register both filenames in the exception on failure. This required adding new C API functions allowing OSError exceptions to reference two filenames instead of one. | ||||
* | Issue #19526: Exclude all new API from the stable ABI. | Martin v. Löwis | 2014-01-03 | 1 | -0/+6 |
| | |||||
* | Issue #16136: Remove VMS support and VMS-related code | Christian Heimes | 2013-12-21 | 1 | -3/+0 |
| | |||||
* | Close #17828: better handling of codec errors | Nick Coghlan | 2013-11-13 | 1 | -0/+22 |
| | | | | | | | | - output type errors now redirect users to the type-neutral convenience functions in the codecs module - stateless errors that occur during encoding and decoding will now be automatically wrapped in exceptions that give the name of the codec involved | ||||
* | Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at ↵ | Antoine Pitrou | 2013-10-07 | 1 | -1/+1 |
|\ | | | | | | | least one place so as to avoid regressions. | ||||
| * | Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at ↵ | Antoine Pitrou | 2013-10-07 | 1 | -1/+1 |
| | | | | | | | | least one place so as to avoid regressions. | ||||
* | | Factor-out the common code for setting a KeyError. | Raymond Hettinger | 2013-09-02 | 1 | -0/+1 |
| | | |||||
* | | Close #11619: The parser and the import machinery do not encode Unicode | Victor Stinner | 2013-08-26 | 1 | -0/+7 |
| | | | | | | | | filenames anymore on Windows. | ||||
* | | Issue #15767: back out 8a0ed9f63c6e, finishing the removal of | Brett Cannon | 2013-07-04 | 1 | -1/+0 |
| | | | | | | | | ModuleNotFoundError. | ||||
* | | Issue #15767: Revert 3a50025f1900 for ModuleNotFoundError | Brett Cannon | 2013-07-04 | 1 | -3/+0 |
| | | |||||
* | | Issue #15767: Touch up ModuleNotFoundError usage by import. | Brett Cannon | 2013-06-13 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Forgot to raise ModuleNotFoundError when None is found in sys.modules. This led to introducing the C function PyErr_SetImportErrorSubclass() to make setting ModuleNotFoundError easier. Also updated the reference docs to mention ModuleNotFoundError appropriately. Updated the docs for ModuleNotFoundError to mention the None in sys.modules case. Lastly, it was noticed that PyErr_SetImportError() was not setting an exception when returning None in one case. That issue is now fixed. | ||||
* | | Issue #15767: Introduce ModuleNotFoundError, a subclass of | Brett Cannon | 2013-06-12 | 1 | -0/+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. | ||||
* | use char instead of int to please T_BOOL (closes #15597) | Benjamin Peterson | 2012-08-09 | 1 | -1/+1 |
| | |||||
* | Issue #13783: the PEP 380 implementation no longer expands the public C API | Nick Coghlan | 2012-06-17 | 1 | -3/+0 |
| | |||||
* | __GNUC__ does not imply gcc version is present, so just check for version ↵ | Benjamin Peterson | 2012-06-04 | 1 | -1/+1 |
| | | | | (closes #14994) | ||||
* | PEP 415: Implement suppression of __context__ display with an exception ↵ | Benjamin Peterson | 2012-05-15 | 1 | -2/+2 |
| | | | | | | attribute This replaces the original PEP 409 implementation. See #14133. | ||||
* | Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo. | Martin v. Löwis | 2012-04-19 | 1 | -0/+2 |
| | | | | Patch by Stefan Behnel. | ||||
* | Fix #14600. Correct reference handling and naming of ImportError convenience ↵ | Brian Curtin | 2012-04-17 | 1 | -3/+2 |
| | | | | function | ||||
* | put PyImportErrorObject with its brothers | Benjamin Peterson | 2012-04-13 | 1 | -7/+7 |
| | |||||
* | Issue #1559549: Add 'name' and 'path' attributes to ImportError. | Brett Cannon | 2012-04-13 | 1 | -0/+13 |
| | | | | | | | | Currently import does not use these attributes as they are planned for use by importlib (which will be another commit). Thanks to Filip Gruszczyński for the initial patch and Brian Curtin for refining it. | ||||
* | Close issue #6210: Implement PEP 409 | Nick Coghlan | 2012-02-26 | 1 | -0/+1 |
| | |||||
* | Implement PEP 380 - 'yield from' (closes #11682) | Nick Coghlan | 2012-01-13 | 1 | -0/+7 |
| | |||||
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy. | Antoine Pitrou | 2011-10-12 | 1 | -12/+30 |
| | |||||
* | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -0/+6 |
| | |||||
* | Closes #11210: Remove PyErr_SetFromWindowsErrWithFilenameObject() of pyerrors.h | Victor Stinner | 2011-03-21 | 1 | -2/+0 |
| | | | | PyErr_SetFromWindowsErrWithFilenameObject() was never implemented. | ||||
* | Issue #8914: fix various warnings from the Clang static analyzer v254. | Brett Cannon | 2011-02-22 | 1 | -1/+11 |
| | |||||
* | Issue #10780: Remove commas at the end of the argument list | Victor Stinner | 2010-12-28 | 1 | -2/+2 |
| | | | | Forbidden in C, stupid language! | ||||
* | Issue #10780: PyErr_SetFromWindowsErrWithFilename() and | Victor Stinner | 2010-12-28 | 1 | -2/+2 |
| | | | | | PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the filesystem encoding instead of UTF-8. | ||||
* | Issue #9738: Document encodings of error and warning functions | Victor Stinner | 2010-12-27 | 1 | -11/+46 |
| | |||||
* | Merge branches/pep-0384. | Martin v. Löwis | 2010-12-03 | 1 | -2/+16 |
| | |||||
* | Issue #5437: A preallocated MemoryError instance should not hold traceback | Antoine Pitrou | 2010-10-28 | 1 | -1/+0 |
| | | | | data (including local variables caught in the stack trace) alive infinitely. | ||||
* | Add a new warning gategory, ResourceWarning, as discussed on python-dev. It ↵ | Georg Brandl | 2010-10-24 | 1 | -0/+1 |
| | | | | | | | | is silent by default, except when configured --with-pydebug. Emit this warning from the GC shutdown procedure, rather than just printing to stderr. | ||||
* | Issue #9738: Document PyErr_SetString() and PyErr_SetFromErrnoWithFilename() | Victor Stinner | 2010-10-09 | 1 | -2/+7 |
| | | | | encodings | ||||
* | add PyErr_SyntaxLocationEx, to support adding a column offset | Benjamin Peterson | 2010-09-20 | 1 | -0/+1 |
| | |||||
* | Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error on | Victor Stinner | 2010-09-11 | 1 | -1/+5 |
| | | | | | | a non-ASCII byte in the format string. Document also the encoding. |