SIGN IN SIGN UP

bpo-40170: PyType_SUPPORTS_WEAKREFS() becomes a regular function (GH-30938)

Convert the PyType_SUPPORTS_WEAKREFS() macro to a regular function.
It no longer access the PyTypeObject.tp_weaklistoffset member
directly.

Add _PyType_SUPPORTS_WEAKREFS() static inline functions, used
internally by Python for best performance.
V
Victor Stinner committed
af32b3ef1fbad3c2242627a14398320960a0cb45
Parent: f0a6481
Committed by GitHub <noreply@github.com> on 1/27/2022, 2:00:55 AM