[BangPypers] collections
Saager Mhatre
saager.mhatre at gmail.com
Thu Nov 10 05:42:57 CET 2011
On Wed, Nov 9, 2011 at 5:30 PM, Kenneth Gonsalves <lawgon at gmail.com> wrote:
> On Wed, 2011-11-09 at 17:23 +0530, Saager Mhatre wrote:
>
> [snip]
>
> > other than Callable that I used in a bunch of test utilities, but that
> usage wasn't really valuable.
>
> but it must be useful for *something* ;-)
>
Not really, initially I thought I might actually have to extend Callable
for the callable function to consider objects of my class... callable. :)
But, it turns out you pretty much just need a __call__ attribute in the
object for callable to return true. So it's mostly vestigial in the code.
- d
More information about the BangPypers
mailing list