You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
py: Add built-in super.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class A:
|
||||
def f(self):
|
||||
pass
|
||||
|
||||
class B(A):
|
||||
def f(self):
|
||||
super().f()
|
||||
@@ -0,0 +1,6 @@
|
||||
# accessing super, but not as a function call
|
||||
|
||||
class A:
|
||||
def f():
|
||||
#x = super
|
||||
print(super)
|
||||
Reference in New Issue
Block a user