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

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




exec "toto = 5" print toto

But I would use another solution if possible.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to