summaryrefslogtreecommitdiffstats
path: root/Doc/library/exceptions.rst
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan2012-01-131-1/+10
| |
* | Merge branch 3.2Amaury Forgeot d'Arc2011-11-221-3/+3
|\ \ | |/
| * bytes() can't be used to get a representation of an object.Amaury Forgeot d'Arc2011-11-221-3/+3
| |
* | Update doc for BlockingIOError and its alias in the io moduleAntoine Pitrou2011-10-121-0/+9
| |
* | Mention the merging of other exceptions into OSError.Antoine Pitrou2011-10-121-0/+5
| |
* | Update exceptions doc for PEP 3151Antoine Pitrou2011-10-121-53/+142
|/
* #10856: document (Base)Exception.args better.Georg Brandl2011-01-071-12/+26
|
* #10723: add missing builtin exceptions.Georg Brandl2010-12-181-0/+18
|
* Fix usage of :option: in the docs (#9312).Éric Araujo2010-11-181-1/+1
| | | | | | | | | | | | | | | | | :option: is used to create a link to an option of python, not to mark up any instance of any arbitrary command-line option. These were changed to ````. For modules which do have a command-line interface, lists of options have been properly marked up with the program/cmdoption directives combo. Options defined in such blocks can be linked to with :option: later in the same file, they won’t link to an option of python. Finally, the markup of command-line fragments in optparse.rst has been cleaned to use ``x`` instead of ``"x"``, keeping that latter form for actual Python strings. Patch by Eli Bendersky and Éric Araujo.
* Add a new warning gategory, ResourceWarning, as discussed on python-dev. It ↵Georg Brandl2010-10-241-0/+10
| | | | | | | | is silent by default, except when configured --with-pydebug. Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
* Migrate to Sphinx 1.0 C language constructs.Georg Brandl2010-10-061-6/+6
|
* Add cross-references to the glossary entry for file objects.Antoine Pitrou2010-09-151-2/+2
|
* remove reference to second argument to raise #8676Benjamin Peterson2010-05-101-4/+4
|