Binding a variable?
bonono at gmail.com
bonono at gmail.com
Fri Oct 21 13:27:58 EDT 2005
More information about the Python-list mailing list
Fri Oct 21 13:27:58 EDT 2005
- Previous message (by thread): DBM scalability
- Next message (by thread): Binding a variable?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think not. temp is a name, not a variable. I believe temp=5 means it points to an immutable object 5. temp=6 means now it points to another immutable object 6. list=[temp] would resolve to whatever object temp is pointed to at that moment. You can try temp=[1]. Paul Dale wrote: > Hi everyone, > > Is it possible to bind a list member or variable to a variable such that > > temp = 5 > > list = [ temp ] > > temp == 6 > > list > > would show > > list = [ 6 ] > > Thanks in advance? > > Paul
- Previous message (by thread): DBM scalability
- Next message (by thread): Binding a variable?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list