'foot' controlled loop in python ??

Padraig Brady Padraig at Linux.ie
Mon Dec 2 08:13:26 EST 2002


Axel Kowald wrote:
> Hi,
> I got recently into Python and I like it a lot. However, I haven't found 
> a loop contruct that is 'foot' controlled, i.e. something like 'do 
> until' or 'repeat while'. Am I overlooking something or is there no such 
> thing ?
> 
> And if not maybe that could be a suggestion for Python 2.3 ?? Often I 
> want to enter a loop at least once and can only decide if  I want to 
> continue when I'm inside the loop. Without a 'foot' controlled loop it's 
> somewhat awkward to program such a behaviour.
> 
>    Axel Kowald
> 

It's not mentioned here:
http://www.python.org/doc/essays/ppt/regrets/PythonRegrets.pdf

  http://userpages.acadia.net/grobinson/

but is here:

  http://www.amk.ca/python/writing/warts.html

Pádraig.




More information about the Python-list mailing list