These are new and part of the stable API as of v3.12.0a6. PyErr_Fetch(), PyErr_Restore(), and PyErr_NormalizeException() were simultaneously deprecated in favor of these. python/cpython@feec49c407