[Python-Dev] Py_ssize_t formatting (original) (raw)
Georg Brandl g.brandl at gmx.net
Sat May 13 16:02:45 CEST 2006
- Previous message: [Python-Dev] Py_ssize_t formatting
- Next message: [Python-Dev] Py_ssize_t formatting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote:
Georg Brandl wrote:
which formatting code should be used for a Pyssizet value in e.g. PyStringFromFormat? %zd
'%zd' won't work since my value can be negative, and the 'z' modifier converts the argument to sizet. That's a bug. It should print it signed. If unsigned printing of sizet 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
- Previous message: [Python-Dev] Py_ssize_t formatting
- Next message: [Python-Dev] Py_ssize_t formatting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]