Guido van Rossum added the comment:

I think you're looking for the discussion in issue 19017.

IIRC the conclusion is that not only do you not get the same error everywhere, 
but you get it at different points -- sometimes register() of a bad FD passes 
and then [Selector.]select() fails, other times register() of a bad FD fails; 
when the FD is initially good and then gets closed, sometimes select() may 
fail, sometimes select() will silently ignore the FD. Sometimes unregister() of 
a closed FD will return False, sometimes True.

Another consequence is that registering an FD, then closing it, then calling 
select(), then reopening it may keep reporting events for the FD or not.

I think these are all things to call out in a section on caveats or common bugs.

----------

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

Reply via email to