Message391876
from ctypes import *
import struct
i = int('7f94e57c', 16)
cp = pointer(c_int(i))
fp = cast(cp, POINTER(c_float))
print(fp.contents.value) # nan
print(struct.pack(">f", fp.contents.value).hex()) # 7fd4e57c
# value changed: 7f94e57c -> 7fd4e57c |
|
Date |
User |
Action |
Args |
2021-04-26 02:52:44 | yang8621 | set | recipients:
+ yang8621 |
2021-04-26 02:52:44 | yang8621 | set | messageid: <1619405564.97.0.595981007242.issue43940@roundup.psfhosted.org> |
2021-04-26 02:52:44 | yang8621 | link | issue43940 messages |
2021-04-26 02:52:44 | yang8621 | create | |
|