tests/basics/builtin_slice: Add test for "slice" builtin name.
This commit is contained in:
parent
bdb0d2d0bc
commit
bc5b896f24
|
@ -4,4 +4,8 @@
|
|||
class A:
|
||||
def __getitem__(self, idx):
|
||||
print(idx)
|
||||
A()[1:2:3]
|
||||
return idx
|
||||
s = A()[1:2:3]
|
||||
|
||||
# check type
|
||||
print(type(s) is slice)
|
||||
|
|
Loading…
Reference in New Issue