So it seems that I stumbled on the idiomatic way of doing this then. Well, as they say, "When in Rome..." :). Thanks for pointing out the FAQ. I'll be reading up on it.
Cheers, Ben Paul Boddie wrote: > none/Ben wrote: > >>Assignment within a while loop seems like a pretty standard thing, so I'm just >>curious what I'm missing. > > > The FAQ on this subject? ;-) > > http://www.python.org/doc/faq/general/#why-can-t-i-use-an-assignment-in-an-expression > > It's "standard" in C-flavoured languages, certainly, but probably not > ubiquitous. > > Paul > -- http://mail.python.org/mailman/listinfo/python-list