[Tutor] python $i equivalent ?

Michele Alzetta michele.alzetta at aliceposta.it
Wed Jun 9 17:25:19 EDT 2004

Suppose I wanted to create numerous instances of a class 
and name each istance according to an element in a list ?

for element in list:
    element = Class()

doesn't work of course; I need something like the bash '$' 
stuff here

for element in list:
    $element = Class() 

(of course this is neither bash nor python, I know !)

How would this be done ?

Michele Alzetta

More information about the Tutor mailing list