micropython/tests/basics/builtin_slice.py

8 lines
107 B
Python

# test builtin slice
# print slice
class A:
def __getitem__(self, idx):
print(idx)
A()[1:2:3]