You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
10 lines
170 B
Python
10 lines
170 B
Python
|
|
# 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)
|