[Python-ideas] Bring back callable()

Bill Janssen janssen at parc.com
Mon Mar 7 18:17:20 CET 2011


Terry Reedy <tjreedy at udel.edu> wrote:

> 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

Me too.

Bill



More information about the Python-ideas mailing list