Skip to content

Commit 00c19f4

Browse files
authored
PEP 572: pass mandatory bufsize sock.recv() argument (#733)
* pass mandatory bufsize sock.recv() argument * remove unnecessary space
1 parent 0919149 commit 00c19f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep-0572.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ an ``if`` or ``while`` statement::
571571
print("Fallback found:", match.group(0))
572572

573573
# Reading socket data until an empty string is returned
574-
while data := sock.recv():
574+
while data := sock.recv(8192):
575575
print("Received data:", data)
576576

577577
Particularly with the ``while`` loop, this can remove the need to have an

0 commit comments

Comments
 (0)