Commit 69db2eb
gh-131117: Update tp_finalize example to use PyErr_GetRaisedException (GH-131118)
The tp_finalize C API doc used PyErr_Fetch() and PyErr_Restore() in
its example code. That API was deprecated in 3.12.
Update to point to the suggested replacement function
PyErr_GetRaisedException() which has a sample usage.
(cherry picked from commit a4832f6)
Co-authored-by: Cody Maloney <[email protected]>
1 parent 1222722 commit 69db2eb
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2153 | 2153 | | |
2154 | 2154 | | |
2155 | 2155 | | |
2156 | | - | |
2157 | | - | |
2158 | 2156 | | |
2159 | | - | |
| 2157 | + | |
2160 | 2158 | | |
2161 | 2159 | | |
2162 | 2160 | | |
2163 | 2161 | | |
2164 | | - | |
| 2162 | + | |
2165 | 2163 | | |
2166 | 2164 | | |
2167 | 2165 | | |
| |||
0 commit comments