[Python-ideas] Simpler syntax for basic iterations
Emile van Sebille
emile at fenx.com
Mon Oct 12 03:59:13 CEST 2015
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/
Emile
More information about the Python-ideas
mailing list