[issue15068] fileinput requires two EOF when reading stdin

Serhiy Storchaka report at bugs.python.org
Tue Mar 8 16:31:53 EST 2016


Serhiy Storchaka added the comment:

Ah, thanks Martin. I forgot that assigning an attribute to a bound method creates a reference loop.

This can be fixed without performance lost by using a clever trick.

----------

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


More information about the Python-bugs-list mailing list