Stephen Thorne wrote:

> Not true, you can't re-write
>
> def f():
>    raise ValueError, "Don't call f"

    f = lambda: eval(compile("raise ValueError(\"Don't call f\")", "", "exec"))

note that lambdas have names too, btw:

    print f.func_name
    <lambda>

</F> 



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

Reply via email to