Commit d6d10b79 authored by Boxiang Sun's avatar Boxiang Sun

add hash attr to dict object

parent 875432d4
......@@ -864,7 +864,7 @@ void setupDict() {
dict_cls->giveAttr("__eq__", new BoxedFunction(FunctionMetadata::create((void*)dictEq, UNKNOWN, 2)));
dict_cls->giveAttr("__ne__", new BoxedFunction(FunctionMetadata::create((void*)dictNe, UNKNOWN, 2)));
dict_cls->giveAttr("__hash__", None);
dict_cls->giveAttr("__iter__", new BoxedFunction(FunctionMetadata::create((void*)dictIterKeys,
typeFromClass(dictiterkey_cls), 1)));
......
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