# Documentation The [documentation](https://docs.python.org/3/library/socket.html#socket.socket.getblocking) for `socket.getblocking()` states: > This is equivalent to checking socket.gettimeout() == 0. But that's the opposite of what it means. According to the [source code](https://github.com/python/cpython/blob/main/Modules/socketmodule.c), `getblocking()` returns `False` if and only if `gettimeout()` returns `0.0.` <!-- gh-linked-prs --> ### Linked PRs * gh-105026 * gh-105283 * gh-105284 <!-- /gh-linked-prs -->
Activity
gh-104882: Docs: fix description of relationship between `socket.getb…
pythongh-104882: Docs: fix description of relationship between `socke…
pythongh-104882: Docs: fix description of relationship between `socke…
[3.12] gh-104882: Docs: fix description of relationship between `sock…
[3.11] gh-104882: Docs: fix description of relationship between `sock…
AlexWaygood commentedon Jun 4, 2023
Fixed, and backported to 3.12 and 3.11