From 00c19f4a8229315e1fd01150d32f2ecaf1590606 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Wed, 11 Jul 2018 01:07:06 +0200 Subject: [PATCH] PEP 572: pass mandatory bufsize sock.recv() argument (#733) * pass mandatory bufsize sock.recv() argument * remove unnecessary space --- pep-0572.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0572.rst b/pep-0572.rst index 3f3e47d1a..8f0f42096 100644 --- a/pep-0572.rst +++ b/pep-0572.rst @@ -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