|
101 | 101 | return_type=object_rprimitive,
|
102 | 102 | c_function_name="CPyDict_GetItemUnsafe",
|
103 | 103 | error_kind=ERR_MAGIC,
|
| 104 | + priority=2, |
104 | 105 | )
|
105 | 106 |
|
106 | 107 | # dictsubclass[key]
|
|
141 | 142 | error_kind=ERR_NEG_INT,
|
142 | 143 | truncated_type=bool_rprimitive,
|
143 | 144 | ordering=[1, 0],
|
| 145 | + priority=2, |
144 | 146 | )
|
145 | 147 |
|
146 | 148 | # key in dict or dict subclass
|
|
231 | 233 | )
|
232 | 234 |
|
233 | 235 | # dict.get(key, default)
|
234 |
| -method_op( |
235 |
| - name="get", |
236 |
| - arg_types=[exact_dict_rprimitive, object_rprimitive, object_rprimitive], |
237 |
| - return_type=object_rprimitive, |
238 |
| - c_function_name="CPyDict_Get", |
239 |
| - error_kind=ERR_MAGIC, |
240 |
| -) |
241 |
| - |
242 |
| -# dictorsubclass.get(key, default) |
243 | 236 | method_op(
|
244 | 237 | name="get",
|
245 | 238 | arg_types=[dict_rprimitive, object_rprimitive, object_rprimitive],
|
|
273 | 266 | return_type=object_rprimitive,
|
274 | 267 | c_function_name="PyDict_SetDefault",
|
275 | 268 | error_kind=ERR_NEVER,
|
| 269 | + priority=2, |
276 | 270 | )
|
277 | 271 |
|
278 | 272 | # dictorsubclass.setdefault(key, default)
|
|
285 | 279 | )
|
286 | 280 |
|
287 | 281 | # dict.setdefault(key)
|
288 |
| -method_op( |
289 |
| - name="setdefault", |
290 |
| - arg_types=[exact_dict_rprimitive, object_rprimitive], |
291 |
| - return_type=object_rprimitive, |
292 |
| - c_function_name="CPyDict_SetDefaultWithNone", |
293 |
| - error_kind=ERR_MAGIC, |
294 |
| -) |
295 |
| - |
296 |
| -# dictorsubclass.setdefault(key) |
297 | 282 | method_op(
|
298 | 283 | name="setdefault",
|
299 | 284 | arg_types=[dict_rprimitive, object_rprimitive],
|
|
320 | 305 | return_type=object_rprimitive,
|
321 | 306 | c_function_name="CPyDict_KeysViewUnsafe",
|
322 | 307 | error_kind=ERR_MAGIC,
|
| 308 | + priority=2, |
323 | 309 | )
|
324 | 310 |
|
325 | 311 | # dictorsubclass.keys()
|
|
338 | 324 | return_type=object_rprimitive,
|
339 | 325 | c_function_name="CPyDict_ValuesViewUnsafe",
|
340 | 326 | error_kind=ERR_MAGIC,
|
| 327 | + priority=2, |
341 | 328 | )
|
342 | 329 |
|
343 | 330 | # dictorsubclass.values()
|
|
356 | 343 | return_type=object_rprimitive,
|
357 | 344 | c_function_name="CPyDict_ItemsViewUnsafe",
|
358 | 345 | error_kind=ERR_MAGIC,
|
| 346 | + priority=2, |
359 | 347 | )
|
360 | 348 |
|
361 | 349 | # dictorsubclass.items()
|
|
374 | 362 | return_type=void_rtype,
|
375 | 363 | c_function_name="PyDict_Clear",
|
376 | 364 | error_kind=ERR_NEVER,
|
| 365 | + priority=2, |
377 | 366 | )
|
378 | 367 |
|
379 | 368 | # dictsubclass.clear()
|
|
0 commit comments