STINNER Victor added the comment: Aleksey Kladov: "To show surprising platform-dependent API behavior."
Hum ok, it makes sense :-) I agree that it would be better to have a portable behaviour in the selectors module which is supposed to be an abstraction providing a portable behaviour. We already wrote code to have the same behaviour when a file descriptor is closed (handle EBADF). Aleksey Kladov: "I think this special case should also be mentioned in the docs." I disagree, we can do better than documenting "bugs" :-) select.select([], [], [], None) raise an OSError "An invalid argument was supplied" on Windows. I propose to use this behaviour on all platforms for all selectors. I should be easy to write a patch in selectors, is anyone interested to write a patch? ---------- components: +asyncio nosy: +gvanrossum, neologix, yselivanov _______________________________________ 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