[issue10476] __iter__ on a byte file object using a method to return an iterator

R. David Murray report at bugs.python.org
Sun Nov 21 03:19:04 CET 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

For the record, I don't find the behavior of __iter__ on a binary file at all confusing.  It's the same behavior I see if I open the file in, say, vi.  So it is in fact the behavior I expect, and I would be surprised if it didn't work.

Whether it is *useful* is a different story, but I'd be willing to bet that there are or will be python3 programs that do use it.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list