[Python-Dev] Py_ssize_t formatting

Georg Brandl g.brandl at gmx.net
Sat May 13 15:35:46 CEST 2006


Hi,

which formatting code should be used for a Py_ssize_t value in e.g.
PyString_FromFormat?

'%zd' won't work since my value can be negative, and the 'z' modifier
converts the argument to size_t.

Georg



More information about the Python-Dev mailing list