How to do this in Python?
jrh at joshh.co.uk
Tue Mar 17 23:10:20 CET 2009
On Tue, Mar 17, 2009 at 05:04:36PM -0500, Jim Garrison wrote:
> What's the canonical Python way of implementing this pseudocode?
> String buf
> File f
> while ((buf=f.read(10000)).length() > 0)
> do something....
That looks more like C than pseudocode to me...
Someone's been spending far too much time on C-like languages, if that's
what your idea of simply readable code looks like. Thank heavens you
found Python before it was too late!
Josh Holland <jrh at joshh.co.uk>
madmartian on irc.freenode.net
More information about the Python-list