[issue45970] Py_NewInterpreter causes bogus fatal error along the failure path

2021-12-02 Thread Jason Haslam
New submission from Jason Haslam : The failure cleanup of `Py_NewInterpreter` causes a bogus fatal error on the call to `PyThreadState_Delete`. The error is about deleting the current thread state. The saved thread state should be swapped back in *before* deleting the new thread state

[issue35103] format_exception() doesn't work with PyErr_Fetch

2020-09-29 Thread Jason Haslam
Jason Haslam added the comment: FWIW, I believe that you have to call `PyErr_NormalizeException` on the values returned from `PyErr_Fetch`. It looks like this is working as expected. -- nosy: +jason.haslam ___ Python tracker <ht