Ed Schouten added the comment:

That's a very good question. One of the goals of CloudABI's C library is to 
leave out definitions for things that are known not to work in the environment. 
For example, our <fcntl.h> doesn't contain open(), as with our security model 
(Capsicum), there is nothing meaningful that this function could do anyway. 
Though this may seem annoying, this actually saves us a lot of time by allowing 
us to very easily detect software that will break.

The same reasoning applies to POLLPRI here. We could in theory implement it as 
an event that simply never triggers, but then it would be nothing more than a 
convoluted way of letting your program get stuck indefinitely.

Also worth taking into account here: I understand why the selectmodule provides 
support for POLLPRI. It simply wants to expose the entire poll() interface into 
Python code, but I'd argue that we'd have to look at the bigger picture. 
Support for out-of-band data in Python is incomplete anyway. The socket module 
also doesn't provide a binding for sockatmark().

----------

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

Reply via email to