howto check is object a func, lambda-func or something else?

Gregor Horvath gh at gregor-horvath.com
Sun Apr 29 13:52:47 EDT 2007


dmitrey schrieb:

> howto check is object Arg1
> - a func, lambda-func
> - something else?
> 
> I tried callable(Arg1), but  callable(lambda-func) returnes False

I don't understand your problem:

>>> callable(lambda:0)
True


Please post your relevant code.

Greg



More information about the Python-list mailing list