xif
public python v1 · immutable#!/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!