[issue21146] update gzip usage examples in docs
Wolfgang Maier
report at bugs.python.org
Thu Apr 3 14:50:40 CEST 2014
Wolfgang Maier added the comment:
same speed is not surprising though as shutil.copyfileobj is implemented like this:
def copyfileobj(fsrc, fdst, length=16*1024):
"""copy data from file-like object fsrc to file-like object fdst"""
while 1:
buf = fsrc.read(length)
if not buf:
break
fdst.write(buf)
which is essentially what I was proposing :)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21146>
_______________________________________
More information about the Python-bugs-list
mailing list