[issue10518] Bring back callable()

SilentGhost report at bugs.python.org
Thu Nov 25 16:05:40 CET 2010


SilentGhost <michael.mischurow+bpo at gmail.com> added the comment:

Just for the reference: "What's new in Python 3.0" page says:

> Removed callable(). Instead of callable(f) you can use isinstance(f, collections.Callable). The operator.isCallable() function is also gone.

There doesn't seem to be any indication than in two-versions time anyone would feel a need to resurrect it.

It might be not "obvious", but it's consistent with the check for other attributes. And I doubt that it's any more non-obvious than the need to use it in a first place.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10518>
_______________________________________


More information about the Python-bugs-list mailing list