[Python-ideas] Simpler syntax for basic iterations
Sven R. Kunze
srkunze at mail.de
Tue Oct 13 22:20:55 CEST 2015
On 13.10.2015 21:49, Ben Finney wrote:
> What you cite as an advantage is exactly why I'd advise against it.
Feel free to do so as do I.
> Your example would lead me to ask “Is this a mistake? ‘each’ is a normal
> name, why isn't it being used?”
You as an experienced Python developer.
That thread is about students learning programming. Not learning Python.
> Whereas ‘__’ is not a normal name, and like other unusual names in
> Python should lead the reader to say “Okay, obviously the person writing
> this had something odd in mind. I'd better find out what.” That is more
> likely to teach about the ‘__’ convention, than to be seen as a mistake
> by experienced programmers.
Python convention necessary when the student need to write real Python.
Best,
Sven
More information about the Python-ideas
mailing list