File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 113113)
114114
115115# dict[key] = value
116- exact_dict_set_item_op = method_op (
117- name = "__setitem__" ,
118- arg_types = [exact_dict_rprimitive , object_rprimitive , object_rprimitive ],
119- return_type = c_int_rprimitive ,
120- c_function_name = "PyDict_SetItem" ,
121- error_kind = ERR_NEG_INT ,
122- )
123-
124- # dictsubclass[key] = value
125116dict_set_item_op = method_op (
126117 name = "__setitem__" ,
127118 arg_types = [dict_rprimitive , object_rprimitive , object_rprimitive ],
132123
133124# dict[key] = value (exact dict only, no subclasses)
134125# NOTE: this is currently for internal use only, and not used for CallExpr specialization
135- exact_dict_set_item_op = custom_op (
126+ exact_dict_set_item_op = method_op (
127+ name = "__setitem__" ,
136128 arg_types = [dict_rprimitive , object_rprimitive , object_rprimitive ],
137129 return_type = c_int_rprimitive ,
138130 c_function_name = "PyDict_SetItem" ,
You can’t perform that action at this time.
0 commit comments