String as a Variable?

Fredrik Lundh fredrik at effbot.org
Fri Feb 2 10:32:52 EST 2001


binnc at my-deja.com wrote:
> Is there a way to have a string represent a variable.

yes, but Python's not Tcl, and there are better
ways to do it.

start here:

    http://www.python.org/doc/current/tut/node7.html
    => 5.4 Dictionaries

Cheers /F





More information about the Python-list mailing list