You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RFC: reminder to remove PyINCREF(Py_None) when support for Python 3.11 is dropped #18229
I noticed we have 19 occurrences of Py_INCREF(Py_None); in thecode base, which I believe becomes a no-op in Python 3.12 following PEP 683, which made None an "immortal" object, i.e., not participate to reference counting.
These lines should be preserved as long as we support Python 3.11, but can be cleaned-up after it's dropped.
Activity
anaclaragalvao commentedon Apr 8, 2026
hey guys. do you know if this issue is doable right now, if Python 3.11 was dropped?
neutrinoceros commentedon Apr 9, 2026
we have no plans for dropping Python 3.11 yet, so this issue is still dormant