[issue20528] fileinput module will read whole file into memory when using fileinput.hook_encoded due to codecs.StreamReader.readlines

R. David Murray report at bugs.python.org
Thu Feb 6 15:10:06 CET 2014


R. David Murray added the comment:

Unfortunately, since 2.7 is in feature freeze, we can't add any new API there to allow a circumvention.  On the other hand, it sounds like Serhiy has come up with an actual fix in the other issue, based on the reason that it is not in fact a problem in 3.x (the io module is smarter than the codecs module in this context).

So, I'm going to close this issue...sorry you went to the extra effort of creating it to no purpose.

----------
nosy: +r.david.murray
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> fileinput module will read whole file into memory when using fileinput.hook_encoded
type:  -> enhancement

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


More information about the Python-bugs-list mailing list