The documentation 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, getblocking() returns False if and only if gettimeout() returns 0.0.
gh-104882: Docs: fix description of relationship between `socket.getb…
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…
Fixed, and backported to 3.12 and 3.11
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 commented on Jun 4, 2023
Fixed, and backported to 3.12 and 3.11