ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-tutor
python-tutor
Re: [Tutor] Evaluating a string expression
by Serdar Tumgoren other posts by this author
Nov 5 2009 5:30AM messages near this date
Re: [Tutor] Evaluating a string expression | Re: [Tutor] Evaluating a string expression
>  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
Thread:
Mkhanyisi Madlavana
Modulok
Alan Gauld
Kent Johnson
Modulok
Tim Golden
Serdar Tumgoren
Serdar Tumgoren
Mkhanyisi Madlavana

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved