https://github.com/python/cpython/commit/748c4b47b70f89cb132f865250eb6c951a177366
commit: 748c4b47b70f89cb132f865250eb6c951a177366
branch: main
author: Petr Viktorin <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-02T10:57:09+02:00
summary:

Document None for timeout argument of select.select (#142177)

files:
M Doc/library/select.rst

diff --git a/Doc/library/select.rst b/Doc/library/select.rst
index e821cb01d941b2..62b5161fb80634 100644
--- a/Doc/library/select.rst
+++ b/Doc/library/select.rst
@@ -115,7 +115,7 @@ The module defines the following:
    :ref:`kevent-objects` below for the methods supported by kevent objects.
 
 
-.. function:: select(rlist, wlist, xlist[, timeout])
+.. function:: select(rlist, wlist, xlist, timeout=None)
 
    This is a straightforward interface to the Unix :c:func:`!select` system 
call.
    The first three arguments are iterables of 'waitable objects': either
@@ -131,7 +131,7 @@ The module defines the following:
    platform-dependent. (It is known to work on Unix but not on Windows.)  The
    optional *timeout* argument specifies a time-out in seconds; it may be
    a non-integer to specify fractions of seconds.
-   When the *timeout* argument is omitted the function blocks until
+   When the *timeout* argument is omitted or ``None``, the function blocks 
until
    at least one file descriptor is ready.  A time-out value of zero specifies a
    poll and never blocks.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to