Antoine Pitrou <pit...@free.fr> added the comment: > > ABCs are still the exception in Python, and duck typing is still the > rule. > > Then why do we callable again?
Because the way __call__ is looked up means hasattr(x, "__call__") is not the right answer. Otherwise there would be no point in bringing it back at all. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10518> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com