[Python-ideas] Quick idea: defining variables from functions that take the variable name
Sven R. Kunze
srkunze at mail.de
Wed Jun 1 09:19:59 EDT 2016
On 01.06.2016 01:46, Ian Foote wrote:
> This is the first syntax I've seen in this thread that seems reasonably
> intuitive and pythonic. I don't mind particularly the keyword used (def
> or something else), but this structure draws the right parallels in my mind.
Still nobody explained why it needs a special syntax at all.
Normal assignment could do it as well as long as the assignment tells
the RHS under what name it will be referred to.
Best,
Sven
More information about the Python-ideas
mailing list