Message267057
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. |
|
Date |
User |
Action |
Args |
2016-06-03 06:25:54 | martin.panter | set | recipients:
+ martin.panter, pitrou, benjamin.peterson, r.david.murray, docs@python, python-dev, serhiy.storchaka, Henning.von.Bargen |
2016-06-03 06:25:53 | martin.panter | set | messageid: <1464935153.01.0.266596922354.issue20699@psf.upfronthosting.co.za> |
2016-06-03 06:25:52 | martin.panter | link | issue20699 messages |
2016-06-03 06:25:52 | martin.panter | create | |
|