Antoine Pitrou added the comment:

Thanks. I guess is_valid_fd() could be improved to check for EBADF, but other 
than that I don't see the problem. dup() is better than fstat() which may do 
some actual I/O.
Did you encounter this in real life?

----------

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

Reply via email to