objtype: Fix passing of class param to inherited classmethods.

This is getting more and more tangled, but that's old news.
This commit is contained in:
Paul Sokolovsky
2014-06-08 22:28:44 +03:00
parent 639863d36e
commit 195de3247b
2 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
# Calling an inherited classmethod
class Base:
@classmethod
def foo(cls):
print(cls.__name__)
class Sub(Base):
pass
Sub.foo()