[Python-Dev] [Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c

"Martin v. Löwis" martin at v.loewis.de
Sun Jan 8 18:59:35 CET 2006


Tim Peters wrote:
> Yup.  Because the supporting PyString_FromFormatV() doesn't know
> anything about z qualifiers now, if you _tried_ to use %zd then even
> on a C99-platform PyString_FromFormatV() wouldn't do any conversions
> from that point on:  it would just copy the format string from the
> first "z" onward into the output buffer, and ignore the trailing
> inputs.  The good news is that we could teach it about "z" (but would
> still need a macro or some such to implement "z" correctly across
> platforms).

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

Regards,
Martin


More information about the Python-Dev mailing list