Message96871
One such weird corner case:
from collections import Callable
class Spam(object):
def __call__(self):
return self
can_of_spam = Spam()
print callable(can_of_spam) == isinstance(can_of_spam, Callable) # True
del Spam.__call__
can_of_spam.__call__ = lambda can: 'spam'
print callable(can_of_spam) == isinstance(can_of_spam, Callable) # False
Regardless, attached a patch for the new proposed semantics |
|
Date |
User |
Action |
Args |
2009-12-24 19:52:23 | joe.amenta | set | recipients:
+ joe.amenta, georg.brandl, exarkun, ncoghlan, pitrou, benjamin.peterson, ezio.melotti, Trundle, milko.krachounov |
2009-12-24 19:52:23 | joe.amenta | set | messageid: <1261684343.23.0.954851699189.issue7006@psf.upfronthosting.co.za> |
2009-12-24 19:52:21 | joe.amenta | link | issue7006 messages |
2009-12-24 19:52:21 | joe.amenta | create | |
|