1
0
forked from VimPlug/jedi

__getitem__ in instances.

This commit is contained in:
Dave Halter
2014-12-01 15:41:13 +01:00
parent 0ab9d331f8
commit 2515d283be

View File

@@ -220,6 +220,7 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
method = self.get_subscope_by_name('__getitem__')
except KeyError:
debug.warning('No __getitem__, cannot access the array.')
return []
else:
return self._evaluator.execute(method, [iterable.AlreadyEvaluated(indexes)])