Rod Morehead <rm...@rmore.net> added the comment:

Isn't the call to read(1) blocking in this case?

If so the only reason it should spin would be if it returned an empty 
string representing EOF.

Couldn't we just add a check for an empty string and, if found, raise an 
EOF exception?

----------
nosy: +rmore

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

Reply via email to