[Python-3000] PyInt_ to PyLong_ rename

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Dec 8 01:14:59 CET 2007


Gregory P. Smith wrote:
> look at the length of a 
> hex pointer in the repr of a class for C pointer size.

I don't think that will work, because the repr only uses
as many hex digits as it needs to represent the value:

 >>> o = object()
 >>> o
<object object at 0x533b8>

I'm pretty sure my G4 PPC is using pointers longer than
20 bits. :-)

--
Greg


More information about the Python-3000 mailing list