summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/exceptions.rst
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18963)Miss Islington (bot)2020-03-131-1/+1
| | | | | (cherry picked from commit fdcd53fe1a8a7f052d7217c36b2597df06b6e016) Co-authored-by: Daniel Hahler <git@thequod.de>
* bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)Miss Islington (bot)2020-02-111-3/+0
| | | | | | | | | | | | Reflecting changes to the code, removed weakref.ReferenceError from weakref.rst and exceptions.rst. Issue submitter provided evidence that the `weakref.ReferenceError` alias for `ReferenceError` was removed from the code in 2007. Working with @gvanrossum at PyCascades CPython sprint we looked at the code and confirmed that `weakref.ReferenceError` was no longer in `weakref.py`. Based on that analysis I removed references `weakref.ReferenceError` from the two documents where it was still being referenced: `weakref.rst` and `exceptions.rst`. https://bugs.python.org/issue38374 (cherry picked from commit 4eb9f4313cfaea6a9611221024a1c54f5662cc37) Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
* [3.7] bpo-38600: NULL -> ``NULL``. (GH-17001) (GH-17004)Serhiy Storchaka2019-10-301-4/+4
| | | | | Also fix some other formatting. (cherry picked from commit e835b31d2b212c3c7820364398979cae2a9740b2)
* [3.7] bpo-38600: Change the mark up of NULL in the C API documentation. ↵Serhiy Storchaka2019-10-301-23/+23
| | | | | | | (GH-16950) (GH-17000) Replace all *NULL* with ``NULL``. (cherry picked from commit 25fc088607c855060ed142296dc1bd0125fad1af)
* bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)Miss Islington (bot)2019-07-031-1/+1
| | | | | (cherry picked from commit aeecf380660ea459d85bb5f59d76bb54f757b5be) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not ↵Miss Islington (bot)2019-05-241-6/+6
| | | | | | | | handled (GH-7778) ``_thread.interrupt_main()`` now avoids setting the Python error status if the ``SIGINT`` signal is ignored or not handled by Python. (cherry picked from commit 608876b6b1eb59538e6c29671a733033fb8b5be7) Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
* bpo-36829: Enhance PyErr_WriteUnraisable() (GH-13487)Victor Stinner2019-05-221-0/+2
| | | | | | | | | | | | PyErr_WriteUnraisable() now displays the exception even if displaying the traceback failed. Moreover, hold a strong reference to sys.stderr while using it. Document that an exception must be set when calling PyErr_WriteUnraisable(), but don't add an assertion to check it at runtime. Cleanup: use longer names for variables and create write_unraisable_exc_file() subfunction.
* Document the surprising sideeffect PyErr_Print(). (GH-12081)Miss Islington (bot)2019-02-271-2/+6
| | | | | | | | Did you know an API documented as printing the pending traceback would sometimes exit the process? You do now. (cherry picked from commit 4173772031747a9b249be4100b4aa9eda805ea23) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.7] bpo-11233: Create availability directive for documentation (GH-9692) ↵Cheryl Sabella2018-10-151-6/+16
| | | | | | | | | | | (GH-9830) Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <georg@python.org> (cherry picked from commit 2d6097d027e0dd3debbabc702aa9c98d94ba32a3) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* Fix typos in multiple `.rst` files (#1668)delirious-lettuce2017-05-191-4/+4
|
* bpo-19225: Remove duplicated description for standard warning categories ↵cocoatomo2017-04-151-12/+9
| | | | (GH-1068)
* bpo-19225: Add a table of warning names and missed exception names in C API ↵cocoatomo2017-04-021-56/+149
| | | | | doc (#881) Move the `.. index` directive to more appropriate place.
* Merge from 3.5.Serhiy Storchaka2016-12-251-1/+1
|\
| * Issue #29068: Fixed a typo in PyErr_Fetch example.Serhiy Storchaka2016-12-251-1/+1
| | | | | | | | Patch by Chi Hsuan Yen.
* | Issue #28635: Fix a couple of missing/incorrect versionchanged tagsYury Selivanov2016-11-101-1/+1
| | | | | | | | Patch by Elvis Pranskevichus.
* | Issue #15767: Use ModuleNotFoundError.Eric Snow2016-09-071-0/+7
| |
* | Issue #15767: Add ModuleNotFoundError.Eric Snow2016-09-071-0/+2
| |
* | Issue #15984: Merge PyUnicode doc from 3.5Martin Panter2016-04-151-2/+2
|\ \ | |/
| * Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-2/+2
| | | | | | | | This affects documentation, code comments, and a debugging messages.
* | On ResourceWarning, log traceback where the object was allocatedVictor Stinner2016-03-191-0/+8
|/ | | | | | | | | | Issue #26567: * Add a new function PyErr_ResourceWarning() function to pass the destroyed object * Add a source attribute to warnings.WarningMessage * Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where source object was allocated.
* Issue #22836: Keep exception reports sensible despite errorsMartin Panter2016-02-281-2/+2
|
* Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.Yury Selivanov2015-07-031-3/+9
|
* Fixed documentation of functions with const char* arguments.Serhiy Storchaka2015-06-211-4/+4
|\
| * Fixed documentation of functions with const char* arguments.Serhiy Storchaka2015-06-211-4/+4
| |
* | Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-211-1/+1
|\ \ | |/
| * Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-211-1/+1
| |
* | merge 3.4 (#23221)Benjamin Peterson2015-01-131-1/+1
|\ \ | |/
| * fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-131-1/+1
| | | | | | | | Patch by Karan Goel.
* | Doc: fix default role usage (except in unittest mock docs)Georg Brandl2014-10-301-1/+1
| |
* | merge with 3.4Georg Brandl2014-10-061-1/+1
|\ \ | |/
| * Closes #22565: fix argument types of PyErr_WarnEx.Georg Brandl2014-10-061-1/+1
| |
* | Reorganize C API docs of the exception APIAntoine Pitrou2014-09-301-151/+191
| |
* | Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` ↵Antoine Pitrou2014-09-301-0/+8
| | | | | | | | but accepting a `va_list` argument.
* | Issue #22018: On Windows, signal.set_wakeup_fd() now also supports sockets.Victor Stinner2014-07-291-3/+8
| | | | | | | | A side effect is that Python depends to the WinSock library.
* | Backout 42ced0d023cd: oops, i didn't want to push this changeset :-/Victor Stinner2014-07-241-10/+3
| |
* | tetsVictor Stinner2014-07-241-3/+10
|/
* Get rid of deprecated IOError in the docAndrew Svetlov2014-03-311-2/+2
|
* Fix a few scoping issues with versionadded/versionchanged directives.Georg Brandl2014-03-241-4/+4
|
* Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-4/+4
|
* Issue #20517: Removed unnecessary new (short-lived) functions from PyErr.Larry Hastings2014-02-101-25/+0
|
* Issue #20517: Functions in the os module that accept two filenamesLarry Hastings2014-02-101-7/+43
| | | | | | 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.
* Close #20105: set __traceback__ when chaining exceptions in CNick Coghlan2014-01-261-0/+10
|
* Close #11619: The parser and the import machinery do not encode UnicodeVictor Stinner2013-08-261-11/+25
| | | | filenames anymore on Windows.
* Issue #18589: fix hyperlinking of type slots (tp_*)Antoine Pitrou2013-08-011-6/+6
|
* Closes #13638: document PyErr_SetFromErrnoWithFilenameObject,Georg Brandl2013-04-141-11/+29
| | | | | | | PyErr_SetFromWindowsErrWithFilenameObject, and PyErr_SetExcFromWindowsErrWithFilenameObject. Note that PyErr_SetExcFromWindowsErrWithFilenameObjectAndSomeOtherParametersSoThatTheNameGetsSoLongThatNobodyIsEverGonnaUseThisStrangeFunctionForAnything is still undocumented.
* PEP 415: Implement suppression of __context__ display with an exception ↵Benjamin Peterson2012-05-151-7/+1
| | | | | | attribute This replaces the original PEP 409 implementation. See #14133.
* Fix location of versionaddeds and empty lines.Georg Brandl2012-04-241-3/+6
|
* Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo.Martin v. Löwis2012-04-191-0/+35
| | | | Patch by Stefan Behnel.
* Fix #14600. Correct reference handling and naming of ImportError convenience ↵Brian Curtin2012-04-171-19/+4
| | | | function
* Add versionadded tags to newly added ImportError convenience functions.Brian Curtin2012-04-161-0/+5
|