Add basic super() test.

This commit is contained in:
Paul Sokolovsky 2014-02-22 18:54:27 +02:00
parent 2077397118
commit 135002a086
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
class Base:
def meth(self):
print("in Base meth")
class Sub(Base):
def meth(self):
print("in Sub meth")
return super().meth()
a = Sub()
a.meth()