This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner, wolma
Date 2015-03-17.22:16:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1844057.3rvGZ4Q5zV@raxxla>
In-reply-to <1426628628.35.0.00976295947648.issue23688@psf.upfronthosting.co.za>
Content
> 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.
History
Date User Action Args
2015-03-17 22:16:10serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, wolma
2015-03-17 22:16:10serhiy.storchakalinkissue23688 messages
2015-03-17 22:16:10serhiy.storchakacreate