callable to disappear?

Georg Brandl g.brandl-nospam at gmx.net
Fri Aug 25 05:11:50 EDT 2006


Antoon Pardon wrote:
> I have been reading http://www.python.org/dev/peps/pep-3100/
> en there is written:
> 
>   To be removed:
>      ...
> 
>      callable(): just call the object and catch the exception
>     
>      ...


> Is there a chance this will be reconsidered?
> 

There was some discussion on python-dev, which concluded that callable()
in its current form is not very useful, since even when you know that
something's callable, the call might fail as well because the callable
doesn't have the correct signature.

So, it's not impossible for Py3k to get an improved version of callable()
including signature checking.

Georg



More information about the Python-list mailing list