[Python-checkins] gh-104882: Docs: fix description of relationship between `socket.getblocking()` and `socket.gettimeout()` (#105026)

AlexWaygood webhook-mailer at python.org
Sun Jun 4 11:59:23 EDT 2023


https://github.com/python/cpython/commit/5a5ed7a3e616a372f054a1dd2e9a31ba32a87a67
commit: 5a5ed7a3e616a372f054a1dd2e9a31ba32a87a67
branch: main
author: Joe Geisbauer <joegeisbauer at gmail.com>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2023-06-04T16:59:16+01:00
summary:

gh-104882: Docs: fix description of relationship between `socket.getblocking()` and `socket.gettimeout()` (#105026)

files:
M Doc/library/socket.rst

diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 21453b404782..5f795af42b81 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1527,7 +1527,7 @@ to sockets.
    Return ``True`` if socket is in blocking mode, ``False`` if in
    non-blocking.
 
-   This is equivalent to checking ``socket.gettimeout() == 0``.
+   This is equivalent to checking ``socket.gettimeout() != 0``.
 
    .. versionadded:: 3.7
 



More information about the Python-checkins mailing list