[issue9962] GzipFile doesn't have peek()
Antoine Pitrou
report at bugs.python.org
Fri Oct 1 13:16:00 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> Should be min(n, 1024) instead of max(...)
Well, no, because we want to buffer a non-trivial amount of bytes for
the next accesses. So, if n < 1024, buffer at least 1024 bytes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9962>
_______________________________________
More information about the Python-bugs-list
mailing list