[issue7006] The replacement suggested for callable(x) in py3k is not equivalent
Nick Coghlan
report at bugs.python.org
Fri Dec 25 08:11:55 CET 2009
Nick Coghlan <ncoghlan at gmail.com> added the comment:
That isn't a semantic change, it is exactly the same semantics as
callable() in 2.x:
>>> class Spam(object):
... def __call__(self): pass
...
>>> callable(Spam())
True
>>> del Spam.__call__
>>> callable(Spam())
False
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7006>
_______________________________________
More information about the Python-bugs-list
mailing list