Message286348
The converter for the format parameter already exists. It is cache_struct(). You just need to change its interface.
> * Fix Struct.__init__() error message: the method accepts also Unicode
> * Document that Struct accepts str encodable to ASCII and bytes
I think this should be backported to older versions. Maybe there is an open issue for this.
> I would be nice to use Py_buffer format for the "buffer" argument of iter_unpack(), but Argument Clinic calls PyBuffer_Release(&buffer), whereas the buffer should stay alive after the function exit. Is there a way to clone/copy a Py_buffer?
I agreed that the Py_buffer converter is not applicable here. Just object is good. |
|
Date |
User |
Action |
Args |
2017-01-27 09:49:13 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, larry, methane |
2017-01-27 09:49:13 | serhiy.storchaka | set | messageid: <1485510553.24.0.397613645704.issue29300@psf.upfronthosting.co.za> |
2017-01-27 09:49:13 | serhiy.storchaka | link | issue29300 messages |
2017-01-27 09:49:13 | serhiy.storchaka | create | |
|