mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621)
This commit is contained in:
parent
eb8974616b
commit
5eca7f3f38
7 changed files with 18 additions and 18 deletions
|
@ -146,7 +146,7 @@ recvfrom_into(buffer[, nbytes, [, flags])\n\
|
|||
sendall(data[, flags]) -- send all data\n\
|
||||
send(data[, flags]) -- send data, may not send all of it\n\
|
||||
sendto(data[, flags], addr) -- send data to a given address\n\
|
||||
setblocking(0 | 1) -- set or clear the blocking I/O flag\n\
|
||||
setblocking(bool) -- set or clear the blocking I/O flag\n\
|
||||
getblocking() -- return True if socket is blocking, False if non-blocking\n\
|
||||
setsockopt(level, optname, value[, optlen]) -- set socket options\n\
|
||||
settimeout(None | float) -- set or clear the timeout\n\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue