Guido van Rossum wrote:
when you are told you have to fetch *some* bytes" but you may not get all 32 bytes ... so you have to build a loop around this until you actually have gotten 32 bytes. Same if instead of 32 bytes you want the next line --
You have to build a loop for these reasons when using synchronous calls, too. You just don't usually notice this because the libraries take care of it for you.