MCPcopy Index your code
hub / github.com/numpy/numpy / order_dict

Function order_dict

numpy/_core/code_generators/genapi.py:450–456  ·  view source on GitHub ↗

Order dict by its values.

(d)

Source from the content-addressed store, hash-verified

448 return astr
449
450def order_dict(d):
451 """Order dict by its values."""
452 o = list(d.items())
453
454 def _key(x):
455 return x[1] + (x[0],)
456 return sorted(o, key=_key)
457
458def merge_api_dicts(dicts):
459 ret = {}

Callers 1

fullapi_hashFunction · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…