Nick Coghlan <ncogh...@gmail.com> added the comment: hasattr(type(x), "__call__") is technically a more valid replacement due to the usual matter of metaclass confusion.
(Although putting special methods on instance objects is a recipe for trouble in more ways than just this one). ---------- nosy: +ncoghlan _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7006> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com