Eric V. Smith added the comment: That's a great test, thanks.
If we were designing this from scratch, I agree that raising an exception is the right thing to do. But the questions is: can we change the behavior now? I think it's unlikely that anyone is relying on these functions returning [W]EOF, and that raising an exception is unlikely to cause problems. I'm curious: did you [Alexander] have some code where you're actually expecting an exception, or did you just stumble across this case? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25386> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com