Message187476
> The patch contains a special case for writing only one bytes object.
> This is very unlikely case.
The patch only modify a few functions to make them use the new _PyBytesWriter API. Other functions can use it.
A few examples:
- PyBytes_FromObject()
- binascii: binascii_rledecode_hqx()
- bz2, lzma and zlib modules
- marshal and pickle modules
- datetime.datetime.strftime()
- Python/compile.c: assemble_lnotab()
- more Unicode decoders
But I agree that the readonly "hack" can be removed from _PyBytesWriter API since the bytes type has no format method (no bytes%args nor bytes.format(args)). |
|
| Date |
User |
Action |
Args |
| 2013-04-20 23:09:12 | vstinner | set | recipients:
+ vstinner, pitrou, serhiy.storchaka |
| 2013-04-20 23:09:12 | vstinner | set | messageid: <1366499352.67.0.722121923281.issue17742@psf.upfronthosting.co.za> |
| 2013-04-20 23:09:12 | vstinner | link | issue17742 messages |
| 2013-04-20 23:09:12 | vstinner | create | |
|