Hans Polak wrote: > Ok, I see your point. Really, I've read more about Python than worked with > it, so I'm out of my league here. > > Can I combine your suggestion with mine and come up with the following: > > do: > <setup code> > <loop body> > while <condition> > else: > <loop completion code>
In my example, the 3 sections (<setup code>, <loop body> and <loop completion code> are all optional. A basic do-while loop would look like this: do: <setup code> while <condition> (That is, <setup code> is still repeated each time around the loop - it's called that because it is run before the loop evaluated condition is evaluated) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com