[BUG] metaclass=EnumMeta
causes: PyTuple_GET_SIZE: Assertion
PyTuple_Check(op)' failed`
#5665
Labels
Milestone
Describe the bug
The code snippet reproduced below built with Cython 3 (Cython 0.x is fine) produces a Python extension that crashes upon loading if CPython was built with assertions enabled:
Backtrace
Code to reproduce the behaviour:
Expected behaviour
No response
OS
Gentoo Linux amd64
Python version
3.11.5
Cython version
df4c9a4
Additional context
Originally reported to pythongssapi/python-gssapi#327.
The text was updated successfully, but these errors were encountered: