[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

STINNER Victor report at bugs.python.org
Wed Mar 26 11:38:24 CET 2014


STINNER Victor added the comment:

2014-03-26 0:35 GMT+01:00 Antoine Pitrou <report at bugs.python.org>:
> - they are immutable: you can keep an internal reference to a bytes object and be sure it won't change under your feet

Is it possible to request this feature using PyObject_GetBuffer()? I
don't see such flag.

If it's not possible, a new flag is maybe needed?

----------

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


More information about the Python-bugs-list mailing list