Closed
Description
Documentation
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.
Linked PRs
- gh-104882: Docs: fix description of relationship between
socket.getblocking()
andsocket.gettimeout()
#105026 - [3.12] gh-104882: Docs: fix description of relationship between
socket.getblocking()
andsocket.gettimeout()
(GH-105026) #105283 - [3.11] gh-104882: Docs: fix description of relationship between
socket.getblocking()
andsocket.gettimeout()
(GH-105026) #105284