[issue10518] Bring back callable()

Łukasz Langa report at bugs.python.org
Thu Nov 25 10:56:13 CET 2010

Łukasz Langa <lukasz at langa.pl> added the comment:

I was originally surprised to find that callable() was gone. I pointed it out at Europython and got a very informative explanation from Brett. The isinstance(obj, collections.Callable) was introduced and it works well.

I'm with Ezio here. I'm -1 for callable(), +0 for iscallable() (there should be preferably one obvious way to do it and using isinstance() seems to be that way at this point).

nosy: +brett.cannon, lukasz.langa

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list