MCPcopy Index your code
hub / github.com/python/cpython / get_parent_map

Function get_parent_map

Lib/xml/etree/ElementPath.py:98–105  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

96
97
98def get_parent_map(context):
99 parent_map = context.parent_map
100 if parent_map is None:
101 context.parent_map = parent_map = {}
102 for p in context.root.iter():
103 for e in p:
104 parent_map[e] = p
105 return parent_map
106
107
108def _is_wildcard_tag(tag):

Callers 1

selectFunction · 0.85

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…