Author vstinner
Recipients Aleksey Kladov, gvanrossum, martin.panter, neologix, vstinner, yselivanov
Date 2015-11-22.13:52:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448200325.6.0.462038269995.issue25680@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2015-11-22 13:52:05vstinnersetrecipients: + vstinner, gvanrossum, neologix, martin.panter, yselivanov, Aleksey Kladov
2015-11-22 13:52:05vstinnersetmessageid: <1448200325.6.0.462038269995.issue25680@psf.upfronthosting.co.za>
2015-11-22 13:52:05vstinnerlinkissue25680 messages
2015-11-22 13:52:05vstinnercreate