Message238350
> With and without the patch, write() accepts bytes, bytearray and memoryview.
> Which other byte-like types do you know?
The "bytes-like object" term is used as an alias of "an instance of type that
supports buffer protocol". Besides bytes, bytearray and memoryview, this is
array.array and NumPy arrays. file.write() supports arbitrary bytes-like
objects, including array.array and NumPy arrays.
> writeframesraw() method of aifc, sunau and wave modules use this pattern:
Yes, I wrote this code, if I remember correct. |
|
Date |
User |
Action |
Args |
2015-03-17 22:16:10 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, wolma |
2015-03-17 22:16:10 | serhiy.storchaka | link | issue23688 messages |
2015-03-17 22:16:10 | serhiy.storchaka | create | |
|