As discussed at https://discuss.python.org/t/c-api-add-py-getbuildintype-and-py-getbuildintypeborrowed/107010/12.
It is desirable for alternative Python implementations to avoid using static exported type objects. Their primary usage is in type checking macros, so I propose converting them to exported functions instead.
See python/cpython#149558 for a draft to convert PyBool_Check.
As discussed at https://discuss.python.org/t/c-api-add-py-getbuildintype-and-py-getbuildintypeborrowed/107010/12.
It is desirable for alternative Python implementations to avoid using static exported type objects. Their primary usage is in type checking macros, so I propose converting them to exported functions instead.
See python/cpython#149558 for a draft to convert
PyBool_Check.