Martin v. Löwis wrote:
> Georg Brandl wrote:
>> which formatting code should be used for a Py_ssize_t value in e.g.
>> PyString_FromFormat?
> 
> %zd
> 
>> '%zd' won't work since my value can be negative, and the 'z' modifier
>> converts the argument to size_t.
> 
> That's a bug. It should print it signed. If unsigned printing of size_t
> is desired, %zu should be used.

I saw you fixed it, thanks.

Similary, there's no way for a structmember to be of type Py_ssize_t...

Georg

_______________________________________________
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

Reply via email to