Visitar URL original
[3.12] gh-104882: Docs: fix description of relationship between `socket.getblocking()` and `socket.gettimeout()` (GH-105026) by miss-islington · Pull Request #105283 · python/cpython · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-104882: Docs: fix description of relationship between `socket.getb…
…locking()` and `socket.gettimeout()` (GH-105026)

(cherry picked from commit 5a5ed7a)

Co-authored-by: Joe Geisbauer <joegeisbauer@gmail.com>
  • Loading branch information
joegeisbauer authored and miss-islington committed Jun 4, 2023
commit 181e0ca6307f04e92b4309c6b7073255979b7f5e
2 changes: 1 addition & 1 deletion Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down