Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Issue #23571: PyErr_FormatV() and PyErr_SetObject() now always clear the | Victor Stinner | 2015-03-24 | 1 | -8/+7 | |
| | | | | | | | | | | current exception because they can run arbitrary Python code and so no exception must be set. | |||||
* | | Issue #23694: Enhance _Py_fopen(), it now raises an exception on error | Victor Stinner | 2015-03-18 | 1 | -0/+4 | |
| | | | | | | | | | | * If fopen() fails, OSError is raised with the original filename object. * The GIL is now released while calling fopen() | |||||
* | | Issue #21715: Extracted shared complicated code in the _io module to new | Serhiy Storchaka | 2014-10-08 | 1 | -0/+24 | |
|\ \ | |/ | | | | | _PyErr_ChainExceptions() function. | |||||
| * | Issue #21715: Extracted shared complicated code in the _io module to new | Serhiy Storchaka | 2014-10-08 | 1 | -0/+24 | |
| | | | | | | | | _PyErr_ChainExceptions() function. | |||||
* | | Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` ↵ | Antoine Pitrou | 2014-09-30 | 1 | -10/+15 | |
|/ | | | | but accepting a `va_list` argument. | |||||
* | Issue #20517: Removed unnecessary new (short-lived) functions from PyErr. | Larry Hastings | 2014-02-10 | 1 | -101/+3 | |
| | ||||||
* | Issue #20517: Functions in the os module that accept two filenames | Larry Hastings | 2014-02-10 | 1 | -22/+147 | |
| | | | | | | 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 #19512, #19515: remove shared identifiers, move identifiers where they | Victor Stinner | 2013-11-07 | 1 | -2/+5 | |
| | | | | | | | are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file. | |||||
* | Issue #19512: add _PyUnicode_CompareWithId() function | Victor Stinner | 2013-11-06 | 1 | -1/+1 | |
| | | | | | | | _PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString() when both strings are equal and interned. Add also _PyId_builtins identifier for "builtins" common string. | |||||
* | Issue #19512: add some common identifiers to only create common strings once, | Victor Stinner | 2013-11-06 | 1 | -1/+1 | |
| | | | | | | | instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter. | |||||
* | Don't export internal symbols ("make smelly") | Antoine Pitrou | 2013-10-12 | 1 | -1/+1 | |
| | ||||||
* | Factor-out the common code for setting a KeyError. | Raymond Hettinger | 2013-09-02 | 1 | -0/+14 | |
| | ||||||
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -2/+2 | |
| | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | |||||
* | Close #11619: The parser and the import machinery do not encode Unicode | Victor Stinner | 2013-08-26 | 1 | -15/+41 | |
| | | | | filenames anymore on Windows. | |||||
* | Issue #18664, #18408: Rewrite PyErr_WriteUnraisable() to handle errors | Victor Stinner | 2013-08-26 | 1 | -40/+62 | |
| | | | | | | | | * Catch PyFile_WriteString() and PyFile_WriteObject() errors * Clear the current exception on _PyObject_GetAttrId() failure * Use PyUnicode_CompareWithASCIIString() and PyFile_WriteObject() instead of _PyUnicode_AsString() and strcmp() to avoid Unicode encoding error. stderr has a more tolerant error handler than utf-8/strict. | |||||
* | Issue #18520: PyErr_NoMemory() now fails with a fatal error if it is called | Victor Stinner | 2013-07-22 | 1 | -0/+6 | |
| | | | | before PyExc_MemoryError has been initialized by _PyExc_Init() | |||||
* | Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now fail | Victor Stinner | 2013-07-17 | 1 | -0/+11 | |
| | | | | | | | | | | | | 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: Fix PyErr_SetImportError(), handle PyDict_SetItemString() failure | Victor Stinner | 2013-07-17 | 1 | -2/+5 | |
| | ||||||
* | Issue #18408: Fix PyErr_NormalizeException(), handle PyObject_IsSubclass() ↵ | Victor Stinner | 2013-07-16 | 1 | -1/+10 | |
| | | | | | | failure PyObject_IsSubclass() can fail and raise a new exception! | |||||
* | Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now | Victor Stinner | 2013-07-11 | 1 | -0/+1 | |
| | | | | fails with an assertion error | |||||
* | Issue #15767: Revert 3a50025f1900 for ModuleNotFoundError | Brett Cannon | 2013-07-04 | 1 | -22/+3 | |
| | ||||||
* | Issue #15767: Touch up ModuleNotFoundError usage by import. | Brett Cannon | 2013-06-13 | 1 | -3/+22 | |
| | | | | | | | | | | | | | 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 #16719: Get rid of WindowsError. Use OSError instead | Andrew Svetlov | 2012-12-19 | 1 | -3/+3 | |
| | | | | Patch by Serhiy Storchaka. | |||||
* | Issue #7317: Display full tracebacks when an error occurs asynchronously. | Andrew Svetlov | 2012-11-03 | 1 | -7/+8 | |
| | | | | Patch by Alon Horev with update by Alexey Kachayev. | |||||
* | Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo. | Martin v. Löwis | 2012-04-19 | 1 | -0/+33 | |
| | | | | Patch by Stefan Behnel. | |||||
* | Fix it for good :-) | Antoine Pitrou | 2012-04-18 | 1 | -3/+1 | |
| | ||||||
* | fix refcnt/style/debuging oversights | Benjamin Peterson | 2012-04-18 | 1 | -5/+7 | |
| | ||||||
* | Fix email post-commit review comments. | Brian Curtin | 2012-04-18 | 1 | -8/+11 | |
| | | | | | | Add INCREFs, fix args->kwargs, and a second args==NULL check was removed, left over from a merger with another function. Instead, checking msg==NULL does what that used to do in a roundabout way. | |||||
* | Fix #14600. Correct reference handling and naming of ImportError convenience ↵ | Brian Curtin | 2012-04-17 | 1 | -27/+20 | |
| | | | | function | |||||
* | Issue #1559549: Add 'name' and 'path' attributes to ImportError. | Brett Cannon | 2012-04-13 | 1 | -0/+47 | |
| | | | | | | | | 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. | |||||
* | Issue #13560: Locale codec functions use the classic "errors" parameter, | Victor Stinner | 2011-12-17 | 1 | -1/+1 | |
| | | | | | | instead of surrogateescape So it would be possible to support more error handlers later. | |||||
* | Issue #13560: os.strerror() now uses the current locale encoding instead of ↵ | Victor Stinner | 2011-12-17 | 1 | -8/+9 | |
| | | | | UTF-8 | |||||
* | Issue #13575: there is only one class type. | Florent Xicluna | 2011-12-12 | 1 | -1/+1 | |
| | ||||||
* | Instantiate the OS-related exception as soon as we raise it, so that "except" | Victor Stinner | 2011-10-17 | 1 | -5/+9 | |
| | | | | | | | | works properly. PyErr_SetFromErrnoWithFilenameObject() was already fixed by the changeset 793c75177d28. This commit fixes PyErr_SetExcFromWindowsErrWithFilenameObject(), used on Windows. | |||||
* | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId. | Martin v. Löwis | 2011-10-14 | 1 | -10/+16 | |
| | ||||||
* | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -1/+1 | |
| | ||||||
* | Instantiate the OS-related exception as soon as we raise it, so that | Antoine Pitrou | 2011-10-12 | 1 | -6/+10 | |
| | | | | "except" works properly. | |||||
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy. | Antoine Pitrou | 2011-10-12 | 1 | -4/+5 | |
| | ||||||
* | Use identifier API for PyObject_GetAttrString. | Martin v. Löwis | 2011-10-10 | 1 | -1/+2 | |
| | ||||||
* | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -2/+2 | |
| | ||||||
* | 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 #5437: A preallocated MemoryError instance should not hold traceback | Antoine Pitrou | 2010-10-28 | 1 | -23/+1 | |
| | | | | 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 | -2/+4 | |
| | | | | | | | | is silent by default, except when configured --with-pydebug. Emit this warning from the GC shutdown procedure, rather than just printing to stderr. | |||||
* | PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead of | Victor Stinner | 2010-10-17 | 1 | -1/+1 | |
| | | | | PyUnicode_FromString(), to decode the filename. | |||||
* | add PyErr_SyntaxLocationEx, to support adding a column offset | Benjamin Peterson | 2010-09-20 | 1 | -1/+17 | |
| | ||||||
* | Issue #8848: U / U# formats of Py_BuildValue() are just alias to s / s# | Victor Stinner | 2010-06-07 | 1 | -1/+1 | |
| | ||||||
* | Make PyErr_Occurred return NULL if there is no current thread. Previously it | Jeffrey Yasskin | 2010-05-13 | 1 | -3/+8 | |
| | | | | | | | would Py_FatalError, which called PyErr_Occurred, resulting in a semi-infinite recursion. Fixes issue 3605. | |||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -641/+641 | |
| | | | | | | | | | | 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. ........ | |||||
* | PyErr_SetFromErrnoWithFilename() decodes the filename using | Victor Stinner | 2010-05-08 | 1 | -1/+1 | |
| | | | | PyUnicode_DecodeFSDefault() instead of PyUnicode_FromString() | |||||
* | Poor PLAN9, it isn't supported | Antoine Pitrou | 2010-02-22 | 1 | -9/+0 | |
| |