2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00
Files
python/src
Victor Stinner a218babc8d Fix enum_type_object type on Python 3.11
The enum_type_object type inherits from PyLong_Type which is not tracked
by the GC. Instances doesn't have to be tracked by the GC: remove the
Py_TPFLAGS_HAVE_GC flag.

The Python C API documentation says:

    "To create a container type, the tp_flags field of the type object
    must include the Py_TPFLAGS_HAVE_GC and provide an implementation of
    the tp_traverse handler."

https://docs.python.org/dev/c-api/gcsupport.html

The new exception was introduced in Python 3.11 by:
https://github.com/python/cpython/issues/88429
2022-04-26 09:42:26 -04:00
..
2018-02-09 15:09:27 -05:00
2007-03-28 18:12:08 +00:00
2020-08-08 02:30:46 -04:00
2021-02-07 23:07:30 -05:00
2004-07-25 17:12:17 +00:00
2016-09-29 08:08:46 -04:00