[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

Serhiy Storchaka report at bugs.python.org
Wed Feb 26 18:15:02 CET 2014


Serhiy Storchaka added the comment:

Same as on Linux (and differs from 3.x). Thank you Zachary.

Here is corrected patch. Added also a test which tests that readline() doesn't read whole file.

----------
Added file: http://bugs.python.org/file34232/fileinput_hook_encoded_3.patch

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


More information about the Python-bugs-list mailing list