MCPcopy Create free account
hub / github.com/numpy/numpy / order_dict

Function order_dict

numpy/core/code_generators/genapi.py:454–459  ·  view source on GitHub ↗

Order dict by its values.

(d)

Source from the content-addressed store, hash-verified

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

Callers 1

fullapi_hashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected