[Tutor] from string to variable name
frank.hoffsummer at gmail.com
Thu Oct 5 15:41:39 CEST 2006
hello, i have a string variable that contains a name that I want to use as
putting aside questions of why I would like to do that - i this possible at
so I want to assign a value to a variable whos name is available only as a
string to me.
that variable does not exist yet in the local namespace.
from: t = "myvar"
to: myvar = 3
is this possible? something like setattr?
thanks for any insight you might have
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor