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

Method save

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

Save the state of the entire Namespace tree structure.

(self, path)

Source from the content-addressed store, hash-verified

98 __getitem__ = __getattr__
99
100 def save(self, path):
101 "Save the state of the entire Namespace tree structure."
102 if isinstance(self.__owner, Namespace):
103 self.__owner.save(path)
104 else:
105 self._save(path, {Namespace: self.state})
106
107 def load(self, path):
108 "Load the state of the entire Namespace tree structure."

Callers 15

recipe-578426.pyFile · 0.45
recipe-578002.pyFile · 0.45
recipe-578198.pyFile · 0.45
recipe-578001.pyFile · 0.45
recipe-578003.pyFile · 0.45
recipe-578765.pyFile · 0.45
recipe-578069.pyFile · 0.45
recipe-578533.pyFile · 0.45
recipe-578415.pyFile · 0.45
recipe-578616.pyFile · 0.45
recipe-578585.pyFile · 0.45
recipe-578029.pyFile · 0.45

Calls 1

_saveMethod · 0.80

Tested by

no test coverage detected