[Python-3000] callable()
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Jul 20 03:26:14 CEST 2006
Ronald Oussoren wrote:
> Classic classes?
I just checked, and it seems they've been fixed too:
callable() and hasattr(obj, '__call_') give the same
result -- true if and only if a __call__ method has
been defined.
Anyway, the point I was making is that this equivalence
is a *good* thing -- I can't think of any reason one
would want it to be different.
--
Greg
More information about the Python-3000
mailing list