Skip to content

Commit 748c4b4

Browse files
authored
Document None for timeout argument of select.select (#142177)
1 parent fddc24e commit 748c4b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/select.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The module defines the following:
115115
:ref:`kevent-objects` below for the methods supported by kevent objects.
116116

117117

118-
.. function:: select(rlist, wlist, xlist[, timeout])
118+
.. function:: select(rlist, wlist, xlist, timeout=None)
119119

120120
This is a straightforward interface to the Unix :c:func:`!select` system call.
121121
The first three arguments are iterables of 'waitable objects': either
@@ -131,7 +131,7 @@ The module defines the following:
131131
platform-dependent. (It is known to work on Unix but not on Windows.) The
132132
optional *timeout* argument specifies a time-out in seconds; it may be
133133
a non-integer to specify fractions of seconds.
134-
When the *timeout* argument is omitted the function blocks until
134+
When the *timeout* argument is omitted or ``None``, the function blocks until
135135
at least one file descriptor is ready. A time-out value of zero specifies a
136136
poll and never blocks.
137137

0 commit comments

Comments
 (0)