MCPcopy Create free account
hub / github.com/ActiveState/code / load

Method load

recipes/Python/578195_Setting_Namespaces/recipe-578195.py:107–112  ·  view source on GitHub ↗

Load the state of the entire Namespace tree structure.

(self, path)

Source from the content-addressed store, hash-verified

105 self._save(path, {Namespace: self.state})
106
107 def load(self, path):
108 "Load the state of the entire Namespace tree structure."
109 if isinstance(self.__owner, Namespace):
110 self.__owner.load(path)
111 else:
112 self.state = self._load(path)[Namespace]
113
114 def __get_state(self):
115 "Get the state of this Namespace and any child Namespaces."

Callers 15

recipe-578426.pyFile · 0.45
recipe-578198.pyFile · 0.45
recipe-578904.pyFile · 0.45
recipe-578996.pyFile · 0.45
recipe-578765.pyFile · 0.45
recipe-578533.pyFile · 0.45
recipe-578415.pyFile · 0.45
recipe-578616.pyFile · 0.45
recipe-578652.pyFile · 0.45
__init__Method · 0.45
recipe-578459.pyFile · 0.45
mainFunction · 0.45

Calls 1

_loadMethod · 0.45

Tested by

no test coverage detected