bpo-40170: PyType_HasFeature() no longer acccess directly tp_flags by vstinner · Pull Request #19378 · python/cpython

@vstinner

PyType_HasFeature() now always calls PyType_GetFlags() to hide
implementation details. Previously, it accessed directly the
PyTypeObject.tp_flags member when the limited C API was not used.

Add fast inlined version _PyType_HasFeature() and _PyType_IS_GC()
for object.c and typeobject.c.

vstinner added a commit that referenced this pull request

Jul 8, 2020

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 8, 2020

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Jul 12, 2020

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Aug 20, 2020