summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/class_super_aslocal.py
blob: c9259110a889d7e3932895eb8873d1430a25f567 (plain) (blame)
1
2
3
4
5
6
7
8
9
# test using the name "super" as a local variable

class A:
    def foo(self):
        super = [1, 2]
        super.pop()
        print(super)

A().foo()