eval() in python

Peter Hansen peter at engcorp.com
Tue Jun 21 08:13:47 EDT 2005


Xah Lee wrote:
> the doc seems to suggest that eval is only for expressions... it says
> uses exec for statements, but i don't seem to see a exec function?

Because it's a statement: http://docs.python.org/ref/exec.html#l2h-563



More information about the Python-list mailing list