mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-08 06:41:00 +08:00
slices should be ignored in __getitem__ settings (for now)
This commit is contained in:
@@ -30,6 +30,9 @@ b = [6,7]
|
||||
#? int()
|
||||
b[8-7]
|
||||
|
||||
# -----------------
|
||||
# Slices
|
||||
# -----------------
|
||||
#? list()
|
||||
b[8:]
|
||||
|
||||
@@ -37,6 +40,14 @@ b[8:]
|
||||
b[int():]
|
||||
|
||||
|
||||
class _StrangeSlice():
|
||||
def __getitem__(self, slice):
|
||||
return slice
|
||||
|
||||
#? []
|
||||
_StrangeSlice()[1:2]
|
||||
|
||||
|
||||
# -----------------
|
||||
# iterable multiplication
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user