[issue10518] Bring back callable()

Antoine Pitrou report at bugs.python.org
Thu Nov 25 15:55:17 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> 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).

The thing is, "isisinstance(x, collections.Callable)" is hardly obvious
to anybody, while callable() is.
As for the naming, it's the same as in 2.x, which is a good enough
reason for me. Nobody stops you from calling your callables "callable"
anyway, or your maxima "max" and your sums "sum".

----------

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


More information about the Python-bugs-list mailing list