[Python-Dev] python-dev Summary for 2003-08-01 through 2003-08-15 [draft]

Skip Montanaro skip at pobox.com
Sat Aug 16 20:45:16 EDT 2003

    Brett> After clearing up the confusing issue of the difference between a
    Brett> Python int and a Python Integer (the former is <type 'int'> while
    Brett> the latter is the union of <type 'int'> and <type 'long'>), ....

    Brett> As of right now Python claims that a void pointer can be held in
    Brett> a Python Integer, but this breaks that claim....

How so?  If a Python Integer is the union of int and long, then when
sizeof(void *) > sizeof(long), you just spill into Python longs.  I didn't
follow the discussion closely, but something about what you've said doesn't
make a lot of sense to me.  Maybe the wording just needs to be clarified.


More information about the Python-Dev mailing list