"Gabriel Genellina" <gagsl-...@yahoo.com.ar> writes:

> En Mon, 25 May 2009 11:07:13 -0300, Jaime Fernandez del Rio
> <jaime.f...@gmail.com> escribió:
>> And since I'm asking, could something similar, i.e. defining a new
>> function and get a handle to it, be achieved with eval?
>
> No, because def is a statement, and eval only accepts an expression.

Well there is the lambda expression, which would work in the example
given in the OP.

-- 
Arnaud
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to