Landry Breuil <lan...@openbsd.org> added the comment: >>> import struct >>> struct.pack("d", float("inf")) b'\x7f\xf0\x00\x00\x00\x00\x00\x00' >>> struct.pack("f", float("inf")) b'\x7f\x80\x00\x00'
And yes, HAVE_DECL_ISINF is defined to 1 in pyconfig.h ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12589> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com