summaryrefslogtreecommitdiffstats
path: root/Doc/library/exceptions.rst
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15767: Add ModuleNotFoundError.Eric Snow2016-09-071-2/+11
|
* Clarify NotImplemented vs NotImplementedError. Initial patch by Emmanuel ↵Ethan Furman2016-08-051-2/+23
| | | | Barry. Closes issue 27242.
* Fix typos in mock and exceptions docsBerker Peksag2016-04-111-1/+1
| | | | | | | | | | | | | The default value of __len__ is 0, not 1: >>> from unittest.mock import MagicMock >>> mock = MagicMock() >>> len(mock) 0 Reported by Alex on docs@p.o. Remove the remaining VMSError reference. VMS support is gone.
* Issue #23391: Merge OSError doc from 3.4 into 3.5Martin Panter2015-10-261-21/+48
|\
| * Issue #23391: Restore OSError constructor argument documentationMartin Panter2015-10-261-21/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-101-1/+1
|\ \ | |/
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| |
* | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.Yury Selivanov2015-07-031-0/+10
| |
* | Issue #24439: Improve PEP 492 related docs.Yury Selivanov2015-06-241-2/+4
| | | | | | | | Patch by Martin Panter.
* | Issue 24180: Fixes by Berker Peksag.Yury Selivanov2015-05-211-1/+0
| |
* | Issue 24180: Documentation for PEP 492 changes.Yury Selivanov2015-05-211-0/+8
| |
* | PEP 479: Change StopIteration handling inside generators.Yury Selivanov2015-05-091-0/+8
| | | | | | | | Closes issue #22906.
* | Issue #23485: select.select() is now retried automatically with the recomputedVictor Stinner2015-03-301-1/+6
|/ | | | | | | | | timeout when interrupted by a signal, except if the signal handler raises an exception. This change is part of the PEP 475. The asyncore and selectors module doesn't catch the InterruptedError exception anymore when calling select.select(), since this function should not raise InterruptedError anymore.
* Issue #23432: Remove duplicate content from SystemExit docs.Berker Peksag2015-03-101-13/+13
| | | | Also, document SystemExit.code attribute explicitly.
* #22613: fix several factual errors in builtin docs (thanks Jacques Ducasse)Georg Brandl2014-10-311-1/+2
|
* Issue #21559: Add alternative (historical) reason for OverflowError.Terry Jan Reedy2014-06-161-3/+4
|
* Issue #16136: VMSError is done, bye bye VMSVictor Stinner2014-06-131-4/+0
|
* Issue #20624: Exception docs wording tweak - clarify that it's okay to ↵Mark Dickinson2014-04-141-4/+4
| | | | inherit from a subclass of Exception.
* fix verb (closes #21174)Benjamin Peterson2014-04-071-1/+1
|
* IOError -> OSErrorAndrew Svetlov2014-03-311-1/+1
|
* Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-1/+0
|
* Issue #20517: Functions in the os module that accept two filenamesLarry Hastings2014-02-101-1/+6
| | | | | | 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 #19691: remove outdated mention about RuntimeErrorAntoine Pitrou2013-11-251-2/+1
|\
| * Issue #19691: remove outdated mention about RuntimeErrorAntoine Pitrou2013-11-251-2/+1
| |
* | Issue #18758: Fixed and improved cross-references.Serhiy Storchaka2013-10-131-6/+5
|\ \ | |/
| * Issue #18758: Fixed and improved cross-references.Serhiy Storchaka2013-10-131-6/+5
| |
* | merge with 3.3Georg Brandl2013-10-081-1/+1
|\ \ | |/
| * Fix wrong link.Georg Brandl2013-10-081-1/+1
| |
* | Issue #15767: back out 8a0ed9f63c6e, finishing the removal ofBrett Cannon2013-07-041-11/+2
| | | | | | | | ModuleNotFoundError.
* | Issue #15767: Revert 3a50025f1900 for ModuleNotFoundErrorBrett Cannon2013-07-041-2/+1
| |
* | Issue #15767: Touch up ModuleNotFoundError usage by import.Brett Cannon2013-06-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 ofBrett Cannon2013-06-121-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge from 3.3 (issue #15209)Nick Coghlan2012-12-091-8/+16
|\ \ | |/
| * Issue #15209: Fix typo and some additional wording tweaksNick Coghlan2012-12-091-8/+16
| |
* | Merge from 3.3 (Issue #15209)Nick Coghlan2012-12-081-11/+17
|\ \ | |/
| * Issue #15209: Clarify exception chaining descriptionNick Coghlan2012-12-081-11/+17
| | | | | | | | | | | | - not allowed when implicitly re-raised the current exception - last exception raised is always displayed last - attempt to make it clearer when/if cause and context are shown
* | Merge 3.3Andrew Svetlov2012-12-051-1/+1
|\ \ | |/
| * Fix typo.Andrew Svetlov2012-12-051-1/+1
| |
* | merge 3.3Benjamin Peterson2012-12-021-0/+24
|\ \ | |/
| * document UnicodeError attributesBenjamin Peterson2012-12-021-0/+24
| |
* | Issue #15478: Raising an OSError doesn't decode or encode the filename anymoreVictor Stinner2012-10-301-0/+6
|/ | | | | | | Pass the original filename argument to OSError constructor, instead of trying to encode it to or decode it from the filesystem encoding. This change avoids an additionnal UnicodeDecodeError on Windows if the filename cannot be decoded from the filesystem encoding (ANSI code page).
* Fix indentation (or Sphinx will think these are attributes of ConnectionError).Ezio Melotti2012-10-211-19/+20
|
* Merge __next__ method link fixes with 3.2.Ezio Melotti2012-10-121-2/+2
|\
| * Fix links to the __next__ method.Ezio Melotti2012-10-121-1/+1
| |
* | Remove attribution; this is for the whatsnew.Georg Brandl2012-06-241-1/+0
| |
* | PEP 415: Implement suppression of __context__ display with an exception ↵Benjamin Peterson2012-05-151-12/+11
| | | | | | | | | | | | attribute This replaces the original PEP 409 implementation. See #14133.
* | Issue #1559549: Add 'name' and 'path' attributes to ImportError.Brett Cannon2012-04-131-0/+8
| | | | | | | | | | | | | | | | 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.
* | typoBenjamin Peterson2012-02-271-1/+1
| |
* | Close issue #6210: Implement PEP 409Nick Coghlan2012-02-261-0/+18
| |
* | Add versionchanged notes for PEP 380Nick Coghlan2012-01-141-0/+3
| |