circuitpython/tests/basics/subscr_tuple.py

8 lines
87 B
Python

# subscripting a subclassed tuple
class Foo(tuple):
pass
foo = Foo((1,2))
foo[0]