def save(self, path):
        "Save the state of the entire Namespace tree structure."
        if isinstance(self.__owner, Namespace):
            self.__owner.save(path)
        else:
            self._save(path, {Namespace: self.state})
Save the state of the entire Namespace tree structure.
recipes/Python/578195_Setting_Namespaces/recipe-578195.py