https://github.com/python/cpython/commit/caf1794b887b1e6ce470fd2a753ec87501be31b5 commit: caf1794b887b1e6ce470fd2a753ec87501be31b5 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: encukou <[email protected]> date: 2025-12-02T14:32:04+01:00 summary:
[3.13] Document None for timeout argument of select.select (GH-142177) cherry picked from commit 82274c491a48c8cebbc1a1350a9cc67bb423caff (GH-142182) Co-authored-by: Petr Viktorin <[email protected]> files: M Doc/library/select.rst diff --git a/Doc/library/select.rst b/Doc/library/select.rst index bbac9bc4bbe3ee..2e3db8ebb324b5 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 @@ -130,7 +130,8 @@ The module defines the following: Empty iterables are allowed, but acceptance of three empty iterables is platform-dependent. (It is known to work on Unix but not on Windows.) The optional *timeout* argument specifies a time-out as a floating-point number - in seconds. When the *timeout* argument is omitted the function blocks until + in seconds. + 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]
