[issue27655] [Patch] Don't require presence of POLLPRI

Ed Schouten report at bugs.python.org
Tue Aug 2 02:29:05 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue27655>
_______________________________________


More information about the Python-bugs-list mailing list