PEP 572: pass mandatory bufsize sock.recv() argument (#733)
* pass mandatory bufsize sock.recv() argument * remove unnecessary space
This commit is contained in:
parent
0919149969
commit
00c19f4a82
|
@ -571,7 +571,7 @@ an ``if`` or ``while`` statement::
|
||||||
print("Fallback found:", match.group(0))
|
print("Fallback found:", match.group(0))
|
||||||
|
|
||||||
# Reading socket data until an empty string is returned
|
# Reading socket data until an empty string is returned
|
||||||
while data := sock.recv():
|
while data := sock.recv(8192):
|
||||||
print("Received data:", data)
|
print("Received data:", data)
|
||||||
|
|
||||||
Particularly with the ``while`` loop, this can remove the need to have an
|
Particularly with the ``while`` loop, this can remove the need to have an
|
||||||
|
|
Loading…
Reference in New Issue