[Python-Dev] replacing 'global'

Just van Rossum just at letterror.com
Sun Oct 26 07:37:02 EST 2003


Skip Montanaro wrote:

> Nope.

Ok :). Yet I think I'm starting to agree with you and Alex that :=
should mean "this name is NON-local".

A couple more things:

- I think augmented assignments CAN be made "rebinding" without breaking
code, since currently a += 1 fails if a is neither local nor global.

- Would := be allowed in statements like "self.a := 2"? It makes no
sense, but since "(a, b) := (2, 3)" IS meaningful, what about
"(a, b, self.c) = (1, 2, 3)"?

Just



More information about the Python-Dev mailing list