Possibly better loop construct, also labels+goto important and on the fly compiler idea.

Skybuck Flying Windows7IsOK at DreamPC2006.com
Thu Oct 24 16:02:56 EDT 2013


Because it's logical.

If the exit condition was placed on the top, the loop would exit immediatly.

Instead the desired behaviour might be to execute the code inside the loop 
first and then exit.

Thus seperating logic into enter and exit conditions makes sense.

Bye,
  Skybuck. 




More information about the Python-list mailing list