Message140825
>>> 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 |
|
Date |
User |
Action |
Args |
2011-07-21 19:22:00 | landry | set | recipients:
+ landry, mark.dickinson, vstinner, rpointel |
2011-07-21 19:22:00 | landry | set | messageid: <1311276120.78.0.251799463216.issue12589@psf.upfronthosting.co.za> |
2011-07-21 19:22:00 | landry | link | issue12589 messages |
2011-07-21 19:22:00 | landry | create | |
|