[Python-ideas] Contraction for "for x in range()"
mikhailwas at gmail.com
Tue Feb 14 16:06:03 EST 2017
I have a small syntax idea.
In short, contraction of
for x in range(a,b,c) :
for x in a,b,c :
I really think there is something cute in it.
So like a shortcut for range() which works only in for-in statement.
So from syntactical POV, do you find it nice syntax?
Visually it seems to me less bulky than range().
for x in 0,5 :
for y in 0,10,2 :
for z in 0, y+8 :
Which would be short for:
for x in range(0,5):
for y in range(0,10,2):
for z in range(0, y+8):
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas