Convert the contents of a string into name of variable

Erwan VITIERE e.vitiere at free.fr
Thu Mar 24 09:12:27 EST 2005


Hello,
I want to convert the contents of a string into name of variable.
For example:

var1="toto"
...
toto=5
print toto 





More information about the Python-list mailing list