All pastes #963876 Raw Edit

xif

public python v1 · immutable
#963876 ·published 2008-03-30 21:36 UTC
rendered paste body
#!/usr/bin/env pythonclass DadClass(object):    @classmethod    def foo(cls):        print 'this is DadClass.foo, cls is ' + cls.__name__class ChildClass(DadClass):    @classmethod    def foo(cls):        print 'this is ChildClass.foo'super(ChildClass, ChildClass()).foo()$ python foo.pythis is DadClass.foo, cls is ChildClass  # but I want cls to be DadClass!