[issue7505] ctypes not converting None to Null in 64-bit system
Antoine Pitrou
report at bugs.python.org
Wed Feb 10 13:03:07 CET 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
It works in 64-bit mode under Mandriva Linux (gcc 4.4.1), with Python 2.6, 2.7 and 3.2.
$ python issue7505.py
b = (nil)
a = 7, c = 7, d = 7, e = 7, f = 7, g = 7, h = 7, i = 7, j = 7, k = 7, l = 7
I also works with a hand-compiled Python (2.6, 2.7, 3.2) under a 64-bit Ubuntu box. However, it fails with the system Python 2.5 shipped with Ubuntu. So perhaps this has to do with how Debian/Ubuntu compile their Pythons, or their libffi.
$ python issue7505.py
b = 0x7f5300000000
a = 7, c = 7, d = 7, e = 7, f = 7, g = 7, h = 7, i = 7, j = 7, k = 7, l = 7
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7505>
_______________________________________
More information about the Python-bugs-list
mailing list