This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Julian, rhettinger
Date 2010-11-21.00:51:49
SpamBayes Score 0.00816512
Marked as misclassified No
Message-id <1290300712.29.0.897529716446.issue10476@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, an idiom I use in Py2.x is:

   for block in iter(partial(f.read, BLKSIZ), ''):
        . . .

This works with both single bytes at time and multiple bytes at a time.
History
Date User Action Args
2010-11-21 00:51:52rhettingersetrecipients: + rhettinger, Julian
2010-11-21 00:51:52rhettingersetmessageid: <1290300712.29.0.897529716446.issue10476@psf.upfronthosting.co.za>
2010-11-21 00:51:49rhettingerlinkissue10476 messages
2010-11-21 00:51:49rhettingercreate