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 vstinner
Recipients lemburg, rhettinger, vstinner
Date 2021-10-15.00:00:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634256017.81.0.797575756877.issue45476@roundup.psfhosted.org>
In-reply-to
Content
I searched for "PyFloat_AS_DOUBLE.*=" regex in the PyPI top 5000 projects. I couldn't find any project doing that.

I only found perfectly safe comparisons:

traits/ctraits.c:            if (PyFloat_AS_DOUBLE(value) <= PyFloat_AS_DOUBLE(low)) {
traits/ctraits.c:            if (PyFloat_AS_DOUBLE(value) >= PyFloat_AS_DOUBLE(high)) {
c/_cffi_backend.c:        return PyFloat_AS_DOUBLE(ob) != 0.0;
pandas/_libs/src/klib/khash_python.h:           ( PyFloat_AS_DOUBLE(a) == PyFloat_AS_DOUBLE(b) );
History
Date User Action Args
2021-10-15 00:00:17vstinnersetrecipients: + vstinner, lemburg, rhettinger
2021-10-15 00:00:17vstinnersetmessageid: <1634256017.81.0.797575756877.issue45476@roundup.psfhosted.org>
2021-10-15 00:00:17vstinnerlinkissue45476 messages
2021-10-15 00:00:17vstinnercreate