[Python-ideas] Simpler syntax for basic iterations

Ben Finney ben+python at benfinney.id.au
Mon Oct 12 00:08:13 CEST 2015


Ben Finney <ben+python at benfinney.id.au> writes:

> I don't claim it will convince you, but I find compelling the fact that
> this::
>
>     for n in range(FOO):
>          fd(100)
>          lt(360/n)
>
> already works fine and is quite clear.

And, of course, in my haste I divided by zero :-)

-- 
 \        “We cannot solve our problems with the same thinking we used |
  `\                           when we created them.” —Albert Einstein |
_o__)                                                                  |
Ben Finney



More information about the Python-ideas mailing list