diff options
author | Brett Cannon <bcannon@gmail.com> | 2003-09-10 19:37:42 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2003-09-10 19:37:42 (GMT) |
commit | 62dba4c2775adfb5a5a97ca012a3ab00c4e28597 (patch) | |
tree | 7f3c3e4ff4ab305aa08c547b660cf679bc3bf19f /Doc/lib/libselect.tex | |
parent | fd4fa8801a75919dd711e9f750b8a405a639f2c2 (diff) | |
download | cpython-62dba4c2775adfb5a5a97ca012a3ab00c4e28597.zip cpython-62dba4c2775adfb5a5a97ca012a3ab00c4e28597.tar.gz cpython-62dba4c2775adfb5a5a97ca012a3ab00c4e28597.tar.bz2 |
select.select() now accepts a sequence (as defined by PySequence_Fast()) for
its first three arguments.
Closes RFE #798046 .
Diffstat (limited to 'Doc/lib/libselect.tex')
-rw-r--r-- | Doc/lib/libselect.tex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/lib/libselect.tex b/Doc/lib/libselect.tex index 803a05e..f3186c4 100644 --- a/Doc/lib/libselect.tex +++ b/Doc/lib/libselect.tex @@ -32,12 +32,12 @@ polling objects. \begin{funcdesc}{select}{iwtd, owtd, ewtd\optional{, timeout}} This is a straightforward interface to the \UNIX{} \cfunction{select()} -system call. The first three arguments are lists of `waitable +system call. The first three arguments are sequences of `waitable objects': either integers representing file descriptors or objects with a parameterless method named \method{fileno()} returning -such an integer. The three lists of waitable objects are for input, -output and `exceptional conditions', respectively. Empty lists are -allowed, but acceptance of three empty lists is platform-dependent. +such an integer. The three sequences of waitable objects are for input, +output and `exceptional conditions', respectively. Empty sequences are +allowed, but acceptance of three empty sequences is platform-dependent. (It is known to work on \UNIX{} but not on Windows.) The optional \var{timeout} argument specifies a time-out as a floating point number in seconds. When the \var{timeout} argument is omitted the function @@ -49,7 +49,7 @@ subsets of the first three arguments. When the time-out is reached without a file descriptor becoming ready, three empty lists are returned. -Among the acceptable object types in the lists are Python file +Among the acceptable object types in the sequences are Python file objects (e.g. \code{sys.stdin}, or objects returned by \function{open()} or \function{os.popen()}), socket objects returned by \function{socket.socket()}.% |