super bug?

Michael Hudson mwh at python.net
Mon Jan 28 11:42:38 EST 2002


Michal Wallace <sabren at manifestation.com> writes:

> Hey all,
> 
> 
> >>> print super.__doc__
> super(type) -> unbound super object
> super(type, obj) -> bound super object; requires isinstance(obj, type)
> super(type, type2) -> bound super object; requires issubclass(type2, type)
> Typical use to call a cooperative superclass method:
> class C(B):
>     def meth(self, arg):
>         super(C, self).meth(arg)
> 
> 
> ## BUT....
> 
> 
> >>> class B:

class B(object):

[...]

HTH,
M.

-- 
  : Giant screaming pieces of excrement, they are.
  I have a feeling that some of the people in here have a 
  MUCH more exciting time relieving themselves than I do.
                                       -- Mike Sphar & Dave Brown, asr



More information about the Python-list mailing list