bpo-39573: Py_TYPE becomes a static inline function by vstinner · Pull Request #26493 · python/cpython (original) (raw)

One year ago, I already pushed the same change to Python 3.10, but it broke many projects and so had to be reverted, see: https://bugs.python.org/issue39573#msg370074

Multiple things changed since my latest attempt:

Note: C extensions implemented with Cython only have to regenerate the C files using Cython, if it's not already done (Cython was fixed one year ago).