[Python-Dev] replacing 'global'
Just van Rossum
just at letterror.com
Sun Oct 26 07:37:02 EST 2003
More information about the Python-Dev mailing list
Sun Oct 26 07:37:02 EST 2003
- Previous message: [Python-Dev] replacing 'global'
- Next message: [Python-Dev] replacing 'global'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] replacing 'global'
- Next message: [Python-Dev] replacing 'global'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list