This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mattip
Recipients mattip
Date 2021-12-19.10:38:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639910300.33.0.186780284433.issue46131@roundup.psfhosted.org>
In-reply-to
Content
The basic classes int, dict, list, tuple ... all have a fast path for Py_*Check(obj):

#define PyLong_Check(op) \
        PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)


except for float. I propose to add a Py_TPFLAGS_FLOAT_SUBCLASS enum and use it to implement PyType_FastSubclass for float.
History
Date User Action Args
2021-12-19 10:38:20mattipsetrecipients: + mattip
2021-12-19 10:38:20mattipsetmessageid: <1639910300.33.0.186780284433.issue46131@roundup.psfhosted.org>
2021-12-19 10:38:20mattiplinkissue46131 messages
2021-12-19 10:38:20mattipcreate