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

Method _get_nodeinfo

Lib/graphlib.py:54–57  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

52 self.add(node, *predecessors)
53
54 def _get_nodeinfo(self, node):
55 if (result := self._node2info.get(node)) is None:
56 self._node2info[node] = result = _NodeInfo(node)
57 return result
58
59 def add(self, node, *predecessors):
60 """Add a new node and its predecessors to the graph.

Callers 1

addMethod · 0.95

Calls 2

_NodeInfoClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected