summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/subclass_native_cmp.py
blob: 1a095bfa1a5b7f9c9089a7624872ea0d840d9ff4 (plain) (blame)
1
2
3
4
5
6
7
8
9
# Test calling non-special method inherited from native type

class mytuple(tuple):
    pass

t = mytuple((1, 2, 3))
print(t)
print(t == (1, 2, 3))
print((1, 2, 3) == t)