select
select — Waiting for I/O completion
This module provides access to the select()
and poll()
functions available in most operating systems, epoll()
available on Linux 2.5+ and kqueue()
available on most BSD. Note that on Windows, it only works for sockets; on other operating systems, it also works for other file types (in particular, on Unix, it works on pipes). It cannot be used on regular files to determine whether a file has grown since it was last read.
The module defines the following:
-
exception select.error
-
The exception raised when an error occurs. The accompanying value is a pair containing the numeric error code from
errno
and the corresponding string, as would be printed by the C functionperror()
.