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

7stud bbxx789_05ss at yahoo.com
Sun Apr 29 13:55:45 EDT 2007


On Apr 29, 11:19 am, dmitrey <open... at ukr.net> wrote:
>
>  callable(lambda-func) returnes False
>

I'm not seeing that. Try this:

f = lambda x: x
print callable(f)

---output:--
True




More information about the Python-list mailing list