[Python-Dev] replacing 'global'
Alex Martelli
aleaxit at yahoo.com
Sun Oct 26 11:24:56 EST 2003
On Sunday 26 October 2003 05:19 pm, Skip Montanaro wrote:
> Just> - Would := be allowed in statements like "self.a := 2"? It makes
> Just> no sense, but since "(a, b) := (2, 3)" IS meaningful, what
> about Just> "(a, b, self.c) = (1, 2, 3)"?
>
> Ummm... This doesn't seem to be strengthening your argument. ;-)
Indeed, I think the argument is stronger -- and := is more useful -- if
a, b := 2, 3
and
self.a := 2
and all such non-elementary variations of assignment are NOT allowed
with := .
Alex
More information about the Python-Dev
mailing list