mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 09:48:55 +08:00
slices should be ignored in __getitem__ settings (for now)
This commit is contained in:
1 parent
d106b2ce2b
commit
23b4a89d1d
4 files changed
+18
-2
No files matched your search
@@ -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