Files
Core2forAWS-MicroPython/tests/basics/subclass_native_cmp.py
T

10 lines
170 B
Python
Raw Normal View History

# 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)