[Tim] > ... > I suspect we're going to have other problems when someone gets around > to passing a size_t-ish value to PyString_Format() or PyErr_Format(). > Maybe we could teach those about the "z" qualifier on all platforms.
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). _______________________________________________ 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