Copies new_config_dict into this config object. Note: new_config_dict can also be a config object.
(self, new_config_dict)
| 85 | return ret |
| 86 | |
| 87 | def replace(self, new_config_dict): |
| 88 | """ |
| 89 | Copies new_config_dict into this config object. |
| 90 | Note: new_config_dict can also be a config object. |
| 91 | """ |
| 92 | if isinstance(new_config_dict, Config): |
| 93 | new_config_dict = vars(new_config_dict) |
| 94 | |
| 95 | for key, val in new_config_dict.items(): |
| 96 | self.__setattr__(key, val) |
| 97 | |
| 98 | def print(self): |
| 99 | for k, v in vars(self).items(): |