You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support of bytes objects in PyBytes_FromFormatV() #55041
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2011-05-24.23:43:47.363>created_at=<Date2011-01-05.02:55:05.972>labels= ['interpreter-core', 'invalid']
title='Add support of bytes objects in PyBytes_FromFormatV()'updated_at=<Date2011-05-24.23:43:47.361>user='https://github.com/vstinner'
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 :-)
Activity
vstinner commentedon Jan 5, 2011
It would be very practical use have a format, eg. '%y', to accept bytes object in PyBytes_FromFormatV().
Example (extracted from posixmodule.c):
With %y, it can be written:
The '%y' may also accept bytearray and any object with the buffer interface (as the 'y' format of PyArg_Parse*() functions).
vstinner commentedon Jan 5, 2011
Patch implementing this feature. It only supports bytes.
vstinner commentedon May 24, 2011
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 :-)