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 martin.panter
Recipients Henning.von.Bargen, benjamin.peterson, docs@python, martin.panter, pitrou, python-dev, r.david.murray, serhiy.storchaka
Date 2016-06-03.06:25:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464935153.01.0.266596922354.issue20699@psf.upfronthosting.co.za>
In-reply-to
Content
I agree with avoiding the term “bytes-like object” in 2.7. It is easy to be specific when talking about concrete classes like BufferedWriter and BytesIO. But the harder question is what to specify for the abstract base classes.

In patch v8, I propose to change the documentation to refer to “sequences of bytes which are usable with ‘memoryview’ ”. Technically, some of the _pyio implementations assume more than this (e.g. len(), iteration and slice assignment), but I have left them alone.
History
Date User Action Args
2016-06-03 06:25:54martin.pantersetrecipients: + martin.panter, pitrou, benjamin.peterson, r.david.murray, docs@python, python-dev, serhiy.storchaka, Henning.von.Bargen
2016-06-03 06:25:53martin.pantersetmessageid: <1464935153.01.0.266596922354.issue20699@psf.upfronthosting.co.za>
2016-06-03 06:25:52martin.panterlinkissue20699 messages
2016-06-03 06:25:52martin.pantercreate