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 <j...@joshh.co.uk> http://joshh.co.uk madmartian on irc.freenode.net -- http://mail.python.org/mailman/listinfo/python-list