Aleksey Kladov added the comment:

>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.

----------

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

Reply via email to