micropython: add micropython component
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# test builtin slice
|
||||
|
||||
# print slice
|
||||
class A:
|
||||
def __getitem__(self, idx):
|
||||
print(idx)
|
||||
return idx
|
||||
s = A()[1:2:3]
|
||||
|
||||
# check type
|
||||
print(type(s) is slice)
|
Reference in New Issue
Block a user