Rich Rauenzahn added the comment:

Given that write() accepts a fileobject, but read() accepts a list of strings 
or a string (and readfp() is the one that accepts a fileobject instead), this 
seems like it could be a common enough error that just iterating over the 
fileobject could be undesirable and an exception might be thrown instead.

I'm throwing this out here to see if the library maintainers were aware of this 
odd edge case.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27351>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to