Author gvanrossum
Recipients docs@python, gvanrossum, neologix, vstinner
Date 2013-12-03.19:51:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386100305.96.0.51037800725.issue19876@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-12-03 19:51:46gvanrossumsetrecipients: + gvanrossum, vstinner, neologix, docs@python
2013-12-03 19:51:45gvanrossumsetmessageid: <1386100305.96.0.51037800725.issue19876@psf.upfronthosting.co.za>
2013-12-03 19:51:45gvanrossumlinkissue19876 messages
2013-12-03 19:51:45gvanrossumcreate