MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / TreeDict

Class TreeDict

tests/benchmark_plot.py:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29from collections import OrderedDict
30
31class TreeDict(OrderedDict):
32 def __missing__(self, key):
33 self[key] = value = TreeDict()
34 return value
35
36def order_kinds(kinds):
37 for idx, kind in enumerate(kinds):

Callers 2

__missing__Method · 0.85
benchmark_plot.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected