Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). ↵ | xdegaye | 2017-10-26 | 1 | -2/+101 |
| | | | | | (#4135) (cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe) | ||||
* | [3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107) | xdegaye | 2017-10-24 | 1 | -1/+18 |
| | | | (cherry picked from commit 66caacf2f0d6213b049a3097556e28e30440b900) | ||||
* | bpo-31161: only check for parens error for SyntaxError (#3083) | Martijn Pieters | 2017-08-22 | 1 | -0/+28 |
| | | | | | Subclasses such as IndentError and TabError should not have this message applied. | ||||
* | bpo-29998: Pickling and copying ImportError now preserves name and path ↵ | Serhiy Storchaka | 2017-04-08 | 1 | -0/+20 |
| | | | | | | (#1010) (#1042) attributes. (cherry picked from commit b785396ab451b0c9d6ae9ee5a9e56c810209a6cb) | ||||
* | Issue #21578: Fixed misleading error message when ImportError called with | Serhiy Storchaka | 2016-09-27 | 1 | -0/+16 |
|\ | | | | | | | invalid keyword args. | ||||
| * | Issue #21578: Fixed misleading error message when ImportError called with | Serhiy Storchaka | 2016-09-27 | 1 | -0/+17 |
|/ | | | | invalid keyword args. | ||||
* | Issue #22836: Keep exception reports sensible despite errors | Martin Panter | 2016-02-28 | 1 | -2/+66 |
| | |||||
* | Issue #23391: Merge OSError doc from 3.4 into 3.5 | Martin Panter | 2015-10-26 | 1 | -5/+12 |
|\ | |||||
| * | Issue #23391: Restore OSError constructor argument documentation | Martin Panter | 2015-10-26 | 1 | -5/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This restores details lost in revision 097f4fda61a4 (since Python 3.3, related to the new OSError subclasses). Further additions: * Markup for attributes and constructor signature * Explain "winerror" and "filename2" * Extend test to check for filename2 defaulting to None * Clarify that the constructor can return a subclass I have intentionally left out any details of allowing more than five arguments, or how the "args" attribute is set for four or more arguments. These details seem to be dependent on the Python version and platform. | ||||
* | | Add a rudimentary test for StopAsyncIteration in test_exceptions. | Yury Selivanov | 2015-07-03 | 1 | -0/+2 |
| | | |||||
* | | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. | Yury Selivanov | 2015-07-03 | 1 | -6/+7 |
|/ | |||||
* | Issue #22977: Remove unconditional import of ctypes. | Serhiy Storchaka | 2015-04-06 | 1 | -1/+0 |
| | |||||
* | Issue #22977: Fix test_exceptions | Victor Stinner | 2015-04-02 | 1 | -5/+8 |
| | |||||
* | Issue #22977: Fixed formatting Windows error messages on Wine. | Serhiy Storchaka | 2015-04-02 | 1 | -1/+9 |
| | | | | Patch by Martin Panter. | ||||
* | Issue #23353: improve exceptions tests for generators | Antoine Pitrou | 2015-03-18 | 1 | -0/+46 |
| | |||||
* | make sure to test UnicodeEncodeError, too | Benjamin Peterson | 2014-04-02 | 1 | -1/+1 |
| | |||||
* | bail in unicode error's __str__ methods if the objects are not properly ↵ | Benjamin Peterson | 2014-04-02 | 1 | -0/+6 |
| | | | | initialized (closes #21134) | ||||
* | make test name consistent with the rest of the file | Benjamin Peterson | 2014-04-02 | 1 | -1/+1 |
| | |||||
* | Issue #20517: Functions in the os module that accept two filenames | Larry Hastings | 2014-02-10 | 1 | -2/+2 |
| | | | | | | 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 #20532: Tests which use _testcapi now are marked as CPython only. | Serhiy Storchaka | 2014-02-07 | 1 | -0/+2 |
|\ | |||||
| * | Issue #20532: Tests which use _testcapi now are marked as CPython only. | Serhiy Storchaka | 2014-02-07 | 1 | -0/+2 |
| | | |||||
| * | Silence BytesWarning (backport 267a4d4d9d65). | Serhiy Storchaka | 2014-02-06 | 1 | -5/+6 |
| | | |||||
* | | Issue #2382: SyntaxError cursor "^" now is written at correct position in most | Serhiy Storchaka | 2014-01-21 | 1 | -0/+13 |
|\ \ | |/ | | | | | | | cases when multibyte characters are in line (before "^"). This still not works correctly with wide East Asian characters. | ||||
| * | Issue #2382: SyntaxError cursor "^" now is written at correct position in most | Serhiy Storchaka | 2014-01-21 | 1 | -0/+13 |
| | | | | | | | | | | cases when multibyte characters are in line (before "^"). This still not works correctly with wide East Asian characters. | ||||
* | | Remove dead code in test_exceptions. | Brett Cannon | 2013-07-04 | 1 | -3/+0 |
| | | |||||
* | | Issue #15767: back out 8a0ed9f63c6e, finishing the removal of | Brett Cannon | 2013-07-04 | 1 | -0/+3 |
| | | | | | | | | ModuleNotFoundError. | ||||
* | | Issue #15767: Introduce ModuleNotFoundError, a subclass of | Brett Cannon | 2013-06-12 | 1 | -3/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Replace IOError with OSError (#16715) | Andrew Svetlov | 2012-12-25 | 1 | -4/+4 |
| | | |||||
* | | Get rig of EnvironmentError (#16705) | Andrew Svetlov | 2012-12-17 | 1 | -3/+3 |
| | | |||||
* | | merge 3.3 | Philip Jenvey | 2012-11-14 | 1 | -5/+10 |
|\ \ | |/ | |||||
| * | merge 3.2 | Philip Jenvey | 2012-11-14 | 1 | -5/+10 |
| |\ | |||||
| | * | don't gc_collect on CPython to guarantee a lack of ref cycles (thanks Antoine) | Philip Jenvey | 2012-11-14 | 1 | -5/+9 |
| | | | |||||
* | | | merge 3.3 | Philip Jenvey | 2012-11-13 | 1 | -0/+3 |
|\ \ \ | |/ / | |||||
| * | | merge 3.2 | Philip Jenvey | 2012-11-13 | 1 | -0/+3 |
| |\ \ | | |/ | |||||
| | * | add gc_collects to weakref tests | Philip Jenvey | 2012-11-13 | 1 | -0/+3 |
| | | | |||||
* | | | Clean up some warnings in test suite output. | Nadeem Vawda | 2012-10-13 | 1 | -4/+5 |
|/ / | |||||
* | | Issue #15784: Modify OSError.__str__() to better distinguish between | Richard Oudkerk | 2012-08-28 | 1 | -2/+2 |
| | | | | | | | | errno error numbers and Windows error numbers. | ||||
* | | Issue #15778: Coerce ImportError.args to a string when it isn't | Brett Cannon | 2012-08-24 | 1 | -0/+5 |
| | | | | | | | | | | | | already one. Patch by Dave Malcolm. | ||||
* | | Issue #1692335: Move initial args assignment to BaseException.__new__ | Richard Oudkerk | 2012-07-28 | 1 | -1/+15 |
| | | | | | | | | to help pickling of naive subclasses. | ||||
* | | PEP 415: Implement suppression of __context__ display with an exception ↵ | Benjamin Peterson | 2012-05-15 | 1 | -7/+8 |
| | | | | | | | | | | | | attribute This replaces the original PEP 409 implementation. See #14133. | ||||
* | | Issue #1559549: Add 'name' and 'path' attributes to ImportError. | Brett Cannon | 2012-04-13 | 1 | -1/+23 |
| | | | | | | | | | | | | | | | | 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 #14177: marshal.loads() now raises TypeError when given an unicode | Antoine Pitrou | 2012-03-03 | 1 | -1/+1 |
|\ \ | |/ | | | | | string. Patch by Guilherme Gonçalves. | ||||
| * | Issue #14177: marshal.loads() now raises TypeError when given an unicode string. | Antoine Pitrou | 2012-03-03 | 1 | -1/+1 |
| | | | | | | | | Patch by Guilherme Gonçalves. | ||||
* | | Close issue #6210: Implement PEP 409 | Nick Coghlan | 2012-02-26 | 1 | -6/+23 |
| | | |||||
* | | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy. | Antoine Pitrou | 2011-10-12 | 1 | -9/+34 |
| | | |||||
* | | Issue #12802: the Windows error ERROR_DIRECTORY (numbered 267) is now | Antoine Pitrou | 2011-09-01 | 1 | -0/+8 |
|\ \ | |/ | | | | | mapped to POSIX errno ENOTDIR (previously EINVAL). | ||||
| * | Issue #12802: the Windows error ERROR_DIRECTORY (numbered 267) is now | Antoine Pitrou | 2011-09-01 | 1 | -0/+8 |
| | | | | | | | | mapped to POSIX errno ENOTDIR (previously EINVAL). | ||||
* | | Issue #12791: Break reference cycles early when a generator exits with an ↵ | Antoine Pitrou | 2011-08-20 | 1 | -0/+62 |
|\ \ | |/ | | | | | exception. | ||||
| * | Issue #12791: Break reference cycles early when a generator exits with an ↵ | Antoine Pitrou | 2011-08-20 | 1 | -0/+62 |
| | | | | | | | | exception. | ||||
* | | merge 3.2 | Benjamin Peterson | 2011-07-03 | 1 | -0/+12 |
|\ \ | |/ |