slices should be ignored in __getitem__ settings (for now)

This commit is contained in:
Dave Halter
2014-04-28 18:15:25 +02:00
parent d106b2ce2b
commit 23b4a89d1d
4 changed files with 18 additions and 2 deletions

View File

@@ -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
# -----------------