callable() builtin-function

Gerrit Holl gerrit at
Wed Feb 19 15:53:25 CET 2003


In the Python regrets list, at,
Although I can understand most of the regrets put there, I do not
understand why Guido has put the callable() function there, with the
comment "just call it".  AFAIK, callable(x) equals hasattr(x,
'__call__'), but what is wrong with callable()? Why could it be
something to regret? Can it be heavily abused? Is it ugly? Is it bad


Asperger Syndroom - een persoonlijke benadering:
Het zijn tijden om je zelf met politiek te bemoeien:

More information about the Python-list mailing list