mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance (GH-29780)
This commit is contained in:
parent
af8c8caaf5
commit
8a45ca542a
7 changed files with 103 additions and 35 deletions
|
|
@ -482,7 +482,6 @@ Querying the error indicator
|
|||
to an exception that was *already caught*, not to an exception that was
|
||||
freshly raised. This function steals the references of the arguments.
|
||||
To clear the exception state, pass ``NULL`` for all three arguments.
|
||||
For general rules about the three arguments, see :c:func:`PyErr_Restore`.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
@ -493,6 +492,12 @@ Querying the error indicator
|
|||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
.. versionchanged:: 3.11
|
||||
The ``type`` and ``traceback`` arguments are no longer used and
|
||||
can be NULL. The interpreter now derives them from the exception
|
||||
instance (the ``value`` argument). The function still steals
|
||||
references of all three arguments.
|
||||
|
||||
|
||||
Signal Handling
|
||||
===============
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue