Peter Otten wrote:

> or you wrap the callable in a descriptor:
> 
>>>> def DefaultTracer(*args): print args
> ...
>>>> class D(object):
> ...     def __init__(self, f):
> ...             self.f = f
> ...     def __get__(self, *args):
> ...             return self.f
> ...

After skimming over Steven's post: use staticmethod.
No idea why I didn't think of that myself.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to