On 9/21/2012 2:11 AM Dae James said...
How can I convert a variable name to a string ?
For example:
testVariable = 1000;
How can I get the string "testVariable" ?

If what you're asking is 'how do I get the value associated with the the string "testVariable"?' then yuo can use something like:

locals()["testVariable"]

Emile



_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to