Martin Panter added the comment:

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.

----------
Added file: http://bugs.python.org/file43141/bytes-like-param.py2.v8.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20699>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to