[Python-ideas] Simpler syntax for basic iterations
Erik
python at lucidity.plus.com
Wed Oct 14 02:01:50 CEST 2015
On 13/10/15 23:19, Mark Lawrence wrote:
> On 13/10/2015 21:35, Sven R. Kunze wrote:
>> On 13.10.2015 22:21, Mark Lawrence wrote:
>>> On 13/10/2015 18:59, Sven R. Kunze wrote:
>>>> I still like instead of the cryptic __ or _
>>>>
>>>> for each in range(3):
>>>> dosomething
>>>>
>>>> To me, that reads like a normal English statement.
>>>>
>>>> Best,
>>>> Sven
>>>
>>> No thanks. The current situation has suited the Python community for
>>> 25 years give or take, so if it ain't broke, there's no way it's going
>>> to get fixed, thank goodness. Can we move on please?
>>>
>>
>> What exactly do you mean?
>
> Stop pointlessly discussing something that simply is not going to happen.
Huh?
for each in range(3):
foo()
... is already valid Python. In what way is that "not going to happen"?
This spelling was just suggested as an alternative to the original
poster who did not like having to explain the cryptic "___" spelling to
students.
Same construct, different spelling.
E.
More information about the Python-ideas
mailing list