Thread
:
string to variable... or something
View Single Post
Jun 28th, 2007, 12:10 PM
#
9
Dietrich
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power:
4
I assume you found the evil function eval():
(
Toggle Plain Text
)
joe = "this is what I want to print" bob = ["joe"] print eval(bob[0]) # this is what I want to print
joe = "this is what I want to print" bob = ["joe"] print eval(bob[0]) # this is what I want to print
__________________
I looked it up on the Intergnats!
Dietrich
View Public Profile
Find More Posts by Dietrich