Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
2b4d518
bpo-46343: Add PyErr_GetActiveException and PyErr_SetActiveException
iritkatriel Jan 11, 2022
87e6087
GetActiveException returns exception as its return value
iritkatriel Jan 11, 2022
ee4d98e
fix test
iritkatriel Jan 11, 2022
ebd9278
use sys.exception instead of sys.exc_info
iritkatriel Jan 13, 2022
5631d32
updated whatsnew
iritkatriel Jan 13, 2022
20fa421
regen-limited-abi
iritkatriel Jan 13, 2022
3a7ab17
[1] Do not steal reference. [2] () --> (void)
iritkatriel Jan 13, 2022
dbfd9d4
Use the new Py_(X)NewRef in a couple of places. Use self.fail() in test.
iritkatriel Jan 17, 2022
a412e4b
add :func: markup in doc
iritkatriel Jan 17, 2022
bcdf599
split out _PyErr_SetActiveException(tstate, exc)
iritkatriel Feb 1, 2022
c63eabf
Merge remote-tracking branch 'upstream/main' into bpo-46343-GetSetExc…
iritkatriel Mar 15, 2022
18eb35c
read --> get
iritkatriel Mar 23, 2022
87981ab
fix limited api version
iritkatriel Mar 23, 2022
9555597
PyErr_GetActiveException always returns NULL if no exception. Fix ref…
iritkatriel Mar 23, 2022
e0ee504
doc changes following review by Victor
iritkatriel Mar 23, 2022
e6a3a7e
renamed Get/SetActiveException --> Get/SetHandledException
iritkatriel Apr 13, 2022
261464c
Merge remote-tracking branch 'upstream/main' into bpo-46343-GetSetExc…
iritkatriel Apr 13, 2022
0355cc9
add new functions to Doc/data/stable_abi.dat
iritkatriel Apr 13, 2022
9382215
alphabetical
iritkatriel Apr 13, 2022
1cc3a4b
make regen-limited-abi
iritkatriel Apr 13, 2022
ffa870b
clearer doc
iritkatriel Apr 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
read --> get
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
iritkatriel and vstinner authored Mar 23, 2022
commit 18eb35c54eed1002b309c1c510d423fa015dff5f
2 changes: 1 addition & 1 deletion Doc/c-api/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ Querying the error indicator

This function is not normally used by code that wants to handle exceptions.
Rather, it can be used when code needs to save and restore the exception
state temporarily. Use :c:func:`PyErr_GetActiveException` to read the exception
state temporarily. Use :c:func:`PyErr_GetActiveException` to get the exception
state.

.. versionadded:: 3.11
Expand Down