py: Add built-in super.

This commit is contained in:
Damien George
2014-02-05 00:51:47 +00:00
parent e0723497b3
commit 35e2a4e6bb
10 changed files with 161 additions and 13 deletions

View File

@@ -0,0 +1,7 @@
class A:
def f(self):
pass
class B(A):
def f(self):
super().f()

View File

@@ -0,0 +1,6 @@
# accessing super, but not as a function call
class A:
def f():
#x = super
print(super)