This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Aleksey Kladov
Recipients Aleksey Kladov, vstinner
Date 2015-11-21.16:01:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448121668.99.0.342630988773.issue25680@psf.upfronthosting.co.za>
In-reply-to
Content
>What's the point of your bug report?

To show surprising platform-dependent API behavior. I don't know what is the correct behavior here, but it should be cross platform. Seems like the most sane option is to throw an exception. 


>Does your application really rely on the behaviour of the selector when no file descriptor is registered?

It was developed on Mac and relied (quite probably incorrectly) on the empty list result. When I run it on linux, it unexpectedly hanged.

So, I would like to either

* observe an exception on all platforms
* observe an empty list on all platforms
* observe infinite blocking on all platforms

I think this special case should also be mentioned in the docs.
History
Date User Action Args
2015-11-21 16:01:09Aleksey Kladovsetrecipients: + Aleksey Kladov, vstinner
2015-11-21 16:01:08Aleksey Kladovsetmessageid: <1448121668.99.0.342630988773.issue25680@psf.upfronthosting.co.za>
2015-11-21 16:01:08Aleksey Kladovlinkissue25680 messages
2015-11-21 16:01:08Aleksey Kladovcreate