New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying configobj #115
Comments
Use |
@jhermann Thanks for your response. I have tried merge. However, if I modify the new copy, e.g. delete a section, the original 'configobj object' gets modified as well. |
Looking at the code, mutable objects (sections) are copied as-is; means you need to apply deepcopy to untangle the two objects fully. |
I ended up |
Keeping this open to either document it, or add it to the code (possibly as a keyword param of |
Hello,
Is there a way to copy the configobj instance? I know there there is a copy method, but it returns a
type dict
. I want to be able to modify the copy and return its result without affecting the original object.Best,
Flavio
The text was updated successfully, but these errors were encountered: