[Python-Dev] [Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c (original) (raw)

Tim Peters tim.peters at gmail.com
Mon Jan 9 01:00:54 CET 2006


[Martin v. Löwis]

On VC7.1, we could use 'L', right?

We could use the "I" (capital letter eye) length modifier under VC7.1. That's good for both size_t and ptrdiff_t formats under VC7.1, where ptrdiff_t under VC7.1 is really the same concept as Py_ssize_t. On 32-bit boxes, "I" means 4 bytes, and on 64-bit boxes "I" means 8 bytes.

On other platforms, we could check whether sizeof(sizet) is sizeof(long), and use 'l', else we could refuse compilation (I doubt this would rule out any relevant system).

Assuming that's a lowercase letter el (I really can't see any difference between upper-eye and lower-el in gmail's font), I think that would be fine.



More information about the Python-Dev mailing list