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

Wolfgang Maier report at bugs.python.org
Mon Mar 23 15:54:06 CET 2015


Wolfgang Maier added the comment:

Serhiy:

I think I saw that you committed this also to the 2.7 branch, but that would not work since memoryviews do not have the nbytes attribute (they do not seem to have cast either). One would have to calculate the length instead from other properties.
Tests would fail too I think.

If I'm mistaken, then sorry for the noise.

----------

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


More information about the Python-bugs-list mailing list