[issue23688] unnecessary copying of memoryview in gzip.GzipFile.write ?

STINNER Victor report at bugs.python.org
Tue Mar 17 16:22:54 CET 2015


STINNER Victor added the comment:

> Better way is data = data.cast('B').

Why is this cast required? Can you please elaborate? If some memoryview must be rejected, again, we need more unit tests.

----------

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


More information about the Python-bugs-list mailing list