PEP 572: pass mandatory bufsize sock.recv() argument (#733)

* pass mandatory bufsize sock.recv() argument

* remove unnecessary space
This commit is contained in:
Giampaolo Rodola 2018-07-11 01:07:06 +02:00 committed by GitHub
parent 0919149969
commit 00c19f4a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ an ``if`` or ``while`` statement::
print("Fallback found:", match.group(0))
# Reading socket data until an empty string is returned
while data := sock.recv():
while data := sock.recv(8192):
print("Received data:", data)
Particularly with the ``while`` loop, this can remove the need to have an