[Python-ideas] Bring back callable()

Terry Reedy tjreedy at udel.edu
Wed Nov 24 00:50:13 CET 2010

On 11/23/2010 6:01 PM, Antoine Pitrou wrote:

> The substitute of writing `isinstance(x, collections.Callable)` is
> not good, 1) because it's wordier 2) because collections is really not
> an intuitive place where to look for a Callable ABC.

I thnk it should be in the abc module, along with WeakSet

The funny thing is that your rationale for not adding Picklable (just 
try and catch exception) is essentially the rationale for removing 
callable() ;-).

Terry Jan Reedy

More information about the Python-ideas mailing list