[Python-Dev] New PEP: Using ssize_t as the index type (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Fri Dec 30 10:58:16 CET 2005


Travis E. Oliphant wrote:

Sounds wonderful. Would love to see this in Python 2.5. This will fix important 64-bit issues. Perhaps someone could explain to me what the difference between Pyssizet and Pyintptrt would be? Is this not a satisfactory Pyssizet already?

Practically, yes. Conceptually, intptr_t and size_t are different things: sizeof(void*) might differ from sizeof(size_t) (e.g. when you have segment and offset in pointers). I believe in flat-address space machines, they are always the same.

Regards, Martin



More information about the Python-Dev mailing list