Commit 1f53dc3
committed
gh-131117: Use PyErr_GetRaisedException in tp_finalize doc
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.1 parent ad90c5f commit 1f53dc3
1 file changed
+2
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2149 | 2149 | | |
2150 | 2150 | | |
2151 | 2151 | | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | | - | |
2157 | | - | |
2158 | | - | |
2159 | | - | |
2160 | | - | |
2161 | | - | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
2165 | | - | |
2166 | | - | |
| 2152 | + | |
| 2153 | + | |
2167 | 2154 | | |
2168 | 2155 | | |
2169 | 2156 | | |
| |||
0 commit comments