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 yang8621
Recipients mark.dickinson, rhettinger, tim.peters, yang8621
Date 2021-04-26.05:14:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619414067.92.0.556088207525.issue43940@roundup.psfhosted.org>
In-reply-to
Content
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'
History
Date User Action Args
2021-04-26 05:14:27yang8621setrecipients: + yang8621, tim.peters, rhettinger, mark.dickinson
2021-04-26 05:14:27yang8621setmessageid: <1619414067.92.0.556088207525.issue43940@roundup.psfhosted.org>
2021-04-26 05:14:27yang8621linkissue43940 messages
2021-04-26 05:14:27yang8621create