Serhiy Storchaka added the comment:

This bug exists also in 2.7.

I doubt about an exception type. On one hand, TypeError looks naturally here 
and exception of this type implicitly raised by Python implementation. On other 
hand, there is a precedent in __iter__() which raises IOError when readline() 
returns non-string.

----------
nosy: +benjamin.peterson
versions: +Python 2.7

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

Reply via email to