Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Another dumb scope question for a closure.
Fredrik Lundh
1/10/2008 9:21:00 PM
Steven W. Orr wrote:
> The problem only happens if I try to modify jj.
It only happens if you try to *bind* the name "jj" to an object inside
the function.
> What am I not understanding?
My guess is that you have a C/C++ view of variables and values, where
variables are locations in memory that can hold values. In Python, such
locations are called objects, and they may or may not have names bound
to them (via assignments).
This might help:
http://effbot.org/zone/python-o...
Then read
http://docs.python.org/ref/ob...
and finally read the "Naming and binding" page again.
</F>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Another dumb scope question for a closure.
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password