By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

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

P: n/a
hi all,
howto check is object Arg1
- a func, lambda-func
- something else?

I tried callable(Arg1), but callable(lambda-func) returnes False

Thx, D.

Apr 29 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
Apr 29 '07 #2

P: n/a
On Apr 29, 11:19 am, dmitrey <open...@ukr.netwrote:
>
callable(lambda-func) returnes False
I'm not seeing that. Try this:

f = lambda x: x
print callable(f)

---output:--
True

Apr 29 '07 #3

P: n/a
Thank you, I have fixed the bug

Apr 29 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.