Hi List, is there in python a variable variable like in PHP ($$var)?
What I want to do is something like that:
pc=["a","b","c"]
for i in pc: i = anyclass()
a.shutdown() b.update()
Use a dictionary:
stuff = {} pc = ['a', 'b', 'c']
for i in pc: stuff[i] = anyclass()
stuff['a'].shutdown() stuff['b'].update() -- http://mail.python.org/mailman/listinfo/python-list