[issue36726] Empty select() on windows gives error.

2019-04-25 Thread Martin Panter
Martin Panter added the comment: I think this is a duplicate of Issue 29256. Issue 25680 also discusses platform differences with no file descriptors. -- nosy: +martin.panter resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Windows select() errors o

[issue36726] Empty select() on windows gives error.

2019-04-25 Thread Ralph Loader
New submission from Ralph Loader : The following one liner gives an error on windows but not on linux: ``` import selectors ; selectors.DefaultSelector().select(timeout=1) ``` It appears that the windows select() function with no FDs set gives an error but on Linux it is equivalent to a sleep