Message391879
Also reproducible by:
from ctypes import *
i = int('7f94e57c', 16)
cp = pointer(c_int(i))
fp = cast(cp, POINTER(c_float))
print(fp.contents.value) # nan
p = pointer(c_float(fp.contents.value))
ip = cast(p, POINTER(c_int))
print(hex(ip.contents.value)) #'0x7fd4e57c' |
|
Date |
User |
Action |
Args |
2021-04-26 05:14:27 | yang8621 | set | recipients:
+ yang8621, tim.peters, rhettinger, mark.dickinson |
2021-04-26 05:14:27 | yang8621 | set | messageid: <1619414067.92.0.556088207525.issue43940@roundup.psfhosted.org> |
2021-04-26 05:14:27 | yang8621 | link | issue43940 messages |
2021-04-26 05:14:27 | yang8621 | create | |
|