Somehow forgot about subscriptlist. Just ignore those for now.

Fixes #1010.
This commit is contained in:
Dave Halter
2018-03-18 17:24:45 +01:00
parent 6042706922
commit 5c06d9871a
2 changed files with 4 additions and 0 deletions

View File

@@ -650,6 +650,8 @@ def eval_subscript_list(evaluator, context, index):
result += [None] * (3 - len(result))
return ContextSet(iterable.Slice(context, *result))
elif index.type == 'subscriptlist':
return NO_CONTEXTS
# No slices
return context.eval_node(index)

View File

@@ -42,6 +42,8 @@ b[int():]
#? list()
b[:]
#?
b[:, 1]
class _StrangeSlice():
def __getitem__(self, sliced):