[issue25680] Selector.select() hangs when there is nothing to select

2015-11-22 Thread Aleksey Kladov
Aleksey Kladov added the comment: >I disagree, we can do better than documenting "bugs" :-) The result of `select.select([], [], [], None)` should defintelly be documented. Three platoforms made three different decisions in similar situation, so any behavior is reasonable and

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-21 Thread Aleksey Kladov
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

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-20 Thread Aleksey Kladov
New submission from Aleksey Kladov: The following hangs on Linux ```Python >>> import selectors >>> s = selectors.DefaultSelector() >>> s.select() ``` On Mac it returns an empty list. ------ messages: 254975 nosy: Aleksey Kladov priority: normal severity