[Python-3000] callable()

Guido van Rossum guido at python.org
Wed Jul 19 18:31:22 CEST 2006


On 7/18/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Andrew Koenig wrote:
>
> > I am uncomfortable about exposing the implementation this way, if only
> > because it would require fixing the equivalence between callable() and
> > hasattr(obj, '__call__') for all time.
>
> I don't see anything bad about fixing that equivalence.
> I regard the fact that it *wasn't* fixed before as a
> language design bug that Py3k will hopefully fix.

I seem to recall fixing it. Are there still callable objects without a
__call__ attribute?

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list