[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

Antoine Pitrou report at bugs.python.org
Wed Mar 26 00:35:21 CET 2014


Antoine Pitrou added the comment:

bytes objects have two things going for them:
- they have the full bytes API (all the startswith(), etc. methods) - not only buffer access
- they are immutable: you can keep an internal reference to a bytes object and be sure it won't change under your feet

This is especially handy when writing C code.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21057>
_______________________________________


More information about the Python-bugs-list mailing list