gh-131117: Update tp_finalize example to use PyErr_GetRaisedException (#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.
C
Cody Maloney committed
a4832f6b9a62771725b159bc7cd6c49fb45e3bc8
Parent: 5c44d7d
Committed by GitHub <noreply@github.com>
on 3/19/2025, 5:27:55 PM