[issue10832] Add support of bytes objects in PyBytes_FromFormatV()

2011-05-24 Thread STINNER Victor
STINNER Victor added the comment: The "%y" format is useless for the posixmodule.c example (it doesn't simplify the code), and I cannot find another usage of this feature. So let's forget it :-) -- resolution: -> invalid status: open -> closed ___

[issue10832] Add support of bytes objects in PyBytes_FromFormatV()

2011-01-04 Thread STINNER Victor
STINNER Victor added the comment: Patch implementing this feature. It only supports bytes. -- keywords: +patch Added file: http://bugs.python.org/file20268/pybytes_fromformat_y.patch ___ Python tracker ___

[issue10832] Add support of bytes objects in PyBytes_FromFormatV()

2011-01-04 Thread STINNER Victor
New submission from STINNER Victor : It would be very practical use have a format, eg. '%y', to accept bytes object in PyBytes_FromFormatV(). Example (extracted from posixmodule.c): k = PyBytes_AsString(key2); v = PyBytes_AsString(val2); len = PyBytes_GET_SIZE(key2) + P