STINNER Victor added the comment:

"Also, given set_wakeup_fd() is rather specialized and uncommon, I don't see 
much point in making it more convenient."

The problem is that passing a blocking file descriptor can block the whole 
Python process. The hang does not occur immediatly, but only when the pipe is 
full for example, which may only occur in some corner cases (ex: heavy system 
load, slow network, etc.).

The minimum would be to raise an error if the file descriptor is in blocking 
mode.

----------

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

Reply via email to