[Python-ideas] Quick idea: defining variables from functions that take the variable name

Sven R. Kunze srkunze at mail.de
Wed Jun 1 14:32:44 EDT 2016


On 01.06.2016 17:24, marky1991 . wrote:
> What is the value of __assigned_name__ here:
>
> x = y = z = AutoSymbol()
>
> ? Is it a list?

I don't think so.

It's basically the first assignment that defines the __assigned_name. If 
you want to initialize 3 symbols at once:


x, y, z = AutoSymbol(), AutoSymbol(), AutoSymbol()


Best,
Sven


More information about the Python-ideas mailing list