[Python-Dev] Adding poll() system call

Andrew Kuchling akuchlin@mems-exchange.org
Tue, 11 Jul 2000 12:18:17 -0400

On Tue, Jul 11, 2000 at 11:52:05AM -0400, Jeremy Hylton wrote:
>obj = poll.new() # generate a new pollfd array
>obj.register(f1, POLLIN | POLLOUT)
>obj.register(f2, POLLOUT)

Very interesting, and probably worth doing because all that list
parsing *is* a silly waste of CPU.  But could poll still live in the
posixmodule, then, or be a module of its own?  [1]

As a side issue, is posixmodule.c getting ungainly, at 5333 lines of
source code?  Should something be done about this?  (Splitting it into
several C files that get #included, or get linked together, for


[1] Ironic footnote: Sam mentioned that Egroups doesn't actually use the
pollmodule.c in the Medusa distribution, because they already have a
module named "poll" that does something completely different.