1
0
forked from VimPlug/jedi

Fixed an issue with ArrayInstances that were using name lookups, which it doesn't have.

This commit is contained in:
Dave Halter
2015-03-03 02:39:02 +01:00
parent 5322c4a965
commit 1520ebf557
2 changed files with 6 additions and 1 deletions

View File

@@ -550,6 +550,11 @@ class ArrayInstance(IterableWrapper):
Used for the usage of set() and list().
This is definitely a hack, but a good one :-)
It makes it possible to use set/list conversions.
In contrast to Array, ListComprehension and all other iterable types, this
is something that is only used inside `evaluate/compiled/fake/builtins.py`
and therefore doesn't need `names_dicts`, `py__bool__` and so on, because
we don't use these operations in `builtins.py`.
"""
def __init__(self, evaluator, instance):
self._evaluator = evaluator