Nested scopes, and augmented assignment

Piet van Oostrum piet at cs.uu.nl
Fri Jul 7 04:20:32 EDT 2006


>>>>> Antoon Pardon <apardon at forel.vub.ac.be> (AP) wrote:

>AP> Could you maybe clarify what problem we are discussing? All I wrote
>AP> was that with an assignment the search for the lefthand variable
>AP> depends on whether the lefthand side is a simple variable or
>AP> more complicated. 

What do you mean with `the lefthand variable'? Especially when talking
about `complicated lefthand sides'?

>AP> Sure people may prefer to speak about (re)binding
>AP> vs mutating variables, but just because I didn't use the prefered terms,
>AP> starting to doubt my understanding of the language, seems a bit
>AP> premature IMO. I'm sure there are areas where my understanding of
>AP> the language is shaky, metaclasses being one of them, but understanding
>AP> how names are searched doesn't seem to be one of them.

You didn't understand it in your OP. Maybe your understanding has gained in
the meantime?
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list