circuitpython/tests/basics/class_super_aslocal.py

10 lines
154 B
Python
Raw Permalink Normal View History

# test using the name "super" as a local variable
class A:
def foo(self):
super = [1, 2]
super.pop()
print(super)
A().foo()