[issue10791] Wrapping TextIOWrapper around gzip files

Antoine Pitrou report at bugs.python.org
Wed Feb 23 17:52:35 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

It would probably be ok to fallback on read() when read1() isn't implemented. read1() is supposed to be implemented by all BufferedIO-compliant classes, but in all honesty I don't think it's very useful in practice. It's supposed to be an optimization, and I think it's a misguided one; the generalized prefetch() primitive I proposed last year would certainly be more useful: see http://mail.python.org/pipermail/python-dev/2010-September/104194.html

----------

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


More information about the Python-bugs-list mailing list