Re: "Variable variable name" or "variable lvalue"

2007-08-16 Thread mfglinux
The solution with the dictionary worked perfectlly well, my script is running and even produces data with sense!!! Thank you very much indeed to all of you answering. Cheers! -- http://mail.python.org/mailman/listinfo/python-list

"Variable variable name" or "variable lvalue"

2007-08-15 Thread mfglinux
Hello to everybody I would like to know how to declare in python a "variable name" that it is in turn a variable In bash shell I would wrote sthg like: for x in `seq 1 3` do M$i=Material(x) #Material is a python class done Why I need this? Cause I have a python module that obliges me to build