Fix an issue with the new set of types instead of lists.
This commit also includes some comments and improvements for debugging.
This commit is contained in:
1 parent
70160d97e7
commit
05798734bf
3 files changed
+20
-18
No files matched your search
@@ -228,6 +228,8 @@ class Array(IterableWrapper, ArrayMixin):
|
||||
elif isinstance(index, compiled.CompiledObject) \
|
||||
and isinstance(index.obj, (int, str, unicode)):
|
||||
with ignored(KeyError, IndexError, TypeError):
|
||||
# TODO REMOVE the ignores. this should not be the case,
|
||||
# because it tends to swallow errors.
|
||||
types |= self.get_exact_index_types(index.obj)
|
||||
lookup_done = True
|
||||
|
||||
|
||||
Reference in new issue
Block a user