Message238344
> While we are here, it is possible to add the support of general byte-like objects.
With and without the patch, write() accepts bytes, bytearray and memoryview. Which other byte-like types do you know?
writeframesraw() method of aifc, sunau and wave modules use this pattern:
if not isinstance(data, (bytes, bytearray)):
data = memoryview(data).cast('B')
We can maybe reuse it in gzip module? |
|
Date |
User |
Action |
Args |
2015-03-17 21:43:48 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka, wolma |
2015-03-17 21:43:48 | vstinner | set | messageid: <1426628628.35.0.00976295947648.issue23688@psf.upfronthosting.co.za> |
2015-03-17 21:43:48 | vstinner | link | issue23688 messages |
2015-03-17 21:43:48 | vstinner | create | |
|