On 7/16/2010 10:38 PM, Brandon Hayden wrote:
In the Python language, or any other language for that matter, I have
never understood why they don't have a loop function. Here's what I
mean, every time someone wants something to repeat itself, they have to
write a while loop like this:
x = 0
while x < 10:
function()
x = x + 1
When, instead of writing all of that, you could do something similar to
this:
function().10
Where you can just type in the number 10 right next to it. It makes no
since.
Ask on python-list/clp/gmane.comp.python.general for an explanation.
--
Terry Jan Reedy
_______________________________________________
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