[Python-Dev] ctypes issue

Neal Becker ndbecker2 at gmail.com
Wed Jan 30 14:15:09 CET 2008


In python 2.5.1:

from ctypes import *
c = c_int(4)
print c == 4
print c.value == 4

False
True

This seem unreasonable to me, and a big invitation to error.



More information about the Python-Dev mailing list