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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com