Commit 91886a47 authored by Stefan Behnel's avatar Stefan Behnel

avoid pessimisation when int-indexing into dicts

parent 97dd9881
......@@ -3019,7 +3019,7 @@ class IndexNode(ExprNode):
self.base = self.base.coerce_to_pyobject(env)
base_type = self.base.type
if base_type.is_pyobject:
if self.index.type.is_int:
if self.index.type.is_int and base_type is not dict_type:
if (getting
and (base_type in (list_type, tuple_type, bytearray_type))
and (not self.index.type.signed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment