[Python-Dev] Py_ssize_t formatting

Tim Peters tim.peters at gmail.com
Sun May 14 01:28:39 CEST 2006


[Neal]
>> Looking in stringobject.c, I don't see how %zu (or %lu) can be used
>> with String_FromFormatV.

[Martin]
> Right. It currently cannot be used. So if it is desired, it needs to
> be added first, and then should be used.

I added it:  %u, %lu, and %zu can be used now in PyString_FromFormat,
PyErr_Format, and PyString_FromFormatV.

Since PyString_FromFormat and PyErr_Format have exactly the same rules
(both inherited from PyString_FromFormatV), but their docs were way
out of synch, it would be good if someone with more LaTeX Fu changed
one of them to just point to the other.  I simply did a massive
copy+paste job to get them in synch again.


More information about the Python-Dev mailing list