[Python-ideas] Simpler syntax for basic iterations
Guido van Rossum
guido at python.org
Mon Oct 12 04:12:03 CEST 2015
On Sun, Oct 11, 2015 at 6:59 PM, Emile van Sebille <emile at fenx.com> wrote:
> On 10/11/2015 2:47 PM, Luciano Ramalho wrote:
>
>> I've felt the same need Andre described, and so far I have not seen a
>> convincing argument against his proposal to accept this syntax:
>>
>> for n: # repeat block n times
>> fd(100)
>> lt(360/n)
>>
>> Where n is any expression that evaluates to an integer.
>>
>
> Umm... https://www.python.org/dev/peps/pep-0284/
>
Heh. "The whole point (15 years ago) of range() was to *avoid* needing
syntax to specify a loop over numbers." I guess I'm nothing if not
consistent. :-)
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20151011/b501847e/attachment.html>
More information about the Python-ideas
mailing list