micropython/tests/basics/builtin_slice.py

8 lines
107 B
Python
Raw Normal View History

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