Py3.11 alpha has been changed to keep only a single exception value internally in sys.exc_info instead of a (type, value, traceback) tuple. There are a couple of places in Cython where we touch those fields and we should a) adapt and b) make sure we don't unnecessarily swap dead fields in Py3.11.
If this stays in CPython until the release, it's probably worth also backporting the necessary changes to 0.29.x.
First reported in #4499 (comment)
https://bugs.python.org/issue45711
Py3.11 alpha has been changed to keep only a single exception value internally in
sys.exc_infoinstead of a(type, value, traceback)tuple. There are a couple of places in Cython where we touch those fields and we should a) adapt and b) make sure we don't unnecessarily swap dead fields in Py3.11.If this stays in CPython until the release, it's probably worth also backporting the necessary changes to 0.29.x.
First reported in #4499 (comment)
https://bugs.python.org/issue45711