Paul Dale <[EMAIL PROTECTED]> writes: > 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 ]
No. You need to either put a mutable in the list, or subclass list so that indexing gets the value, looks it up in the appropriate namespace, and returns that value. <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list