195de3247b
This is getting more and more tangled, but that's old news.
13 lines
150 B
Python
13 lines
150 B
Python
# Calling an inherited classmethod
|
|
class Base:
|
|
|
|
@classmethod
|
|
def foo(cls):
|
|
print(cls.__name__)
|
|
|
|
class Sub(Base):
|
|
pass
|
|
|
|
|
|
Sub.foo()
|