callable classes

Terry Reedy tjreedy at udel.edu
Sat Dec 27 22:48:10 CET 2003


"Duncan Smith" <buzzard at urubu.freeserve.co.uk> wrote in message
news:bskkig$sf6$1 at news7.svr.pol.co.uk...
> > What do you mean by 'callable class'? Classes are callables. Ot you
mean
> >   a class that defines __call__ method? In this case it's really
useful.
> >
> > regards,
> > anton.
>
> Yes, I meant a class that defines a __call__ method.  Cheers.

Which makes the *instances* callable, so you meant 'class with callable
instances'.

TJR






More information about the Python-list mailing list