[Python-Dev] Py_ssize_t formatting (original) (raw)
Tim Peters tim.peters at gmail.com
Sun May 14 01:28:39 CEST 2006
- Previous message: [Python-Dev] Py_ssize_t formatting
- Next message: [Python-Dev] correction of a bug
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Neal]
Looking in stringobject.c, I don't see how %zu (or %lu) can be used with StringFromFormatV.
[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.
- Previous message: [Python-Dev] Py_ssize_t formatting
- Next message: [Python-Dev] correction of a bug
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]