> I'm afraid that your question doesn't pass the basic "Have I Googled it?"> test. I stuck "evaluate a string expression in python" into Google and got:> > http://www.google.co.uk/#q=evaluate+a+string+expression+in+python>
That search turns up a useful tutorial by effbot:
http://effbot.org/zone/librarybook-core-eval.htm
It covers the basics of how to safely use eval if the data is coming
from an untrusted source. Might be worth a look depending on your use
case.
_______________________________________________
Tutor maillist - Tutor@[...].org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor