Question

Erik Max Francis max at alcyone.com
Mon Aug 9 14:10:06 EDT 2004


Dag Hansteen wrote:

> How do I this ? I have a string with a such expression and I want to
> return the answer in a variable.

Use eval, but use it wisely.

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Consistency is the last refuge of the unimaginative.
    -- Oscar Wilde



More information about the Python-list mailing list