On Jan 23, 11:51 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
Oops:

>
> class callsuper(object):
>     def __init__(self, f):
>         self.f = f
>     def __get__(self, obj, cls=None):
>         def newfunc(*args, **kwargs):
>             super(self.cls, obj).__init__()

Change this line to:
              getattr(super.cls, obj), self.f.__name__)()

>             return self.f(obj, *args, **kwargs)
>         return newfunc
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to