[Python-Dev] replacing 'global'
Guido van Rossum
guido at python.org
Sat Oct 25 23:29:53 EDT 2003
> > How about adding a "rebinding" operator, for example spelled ":=":
> >
> > a := 2
>
> I expect Guido would object to that on the grounds that
> it's conferring arbitrary semantics on a symbol.
Hardly arbitary (I have fond memories of several languages that used :=).
But what is one to make of a function that uses both
a := 2
and
a = 2
???
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list