gamename wrote: > Hi, > > In TCL, you can do things like: > set foobar "HI!" > set x foo > set y bar > subst $$x$y > HI! > > Is there a way to do this type of evaluation in python? > > TIA, > -T >
myStore={}
myStore['foobar']="HI!"
x='foo'
y='bar'
print myStore[x+y]
-Larry
--
http://mail.python.org/mailman/listinfo/python-list
