Skip to content

Adapt to exc_info changes in Py3.11 #4500

@scoder

Description

@scoder

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions