Pritish Patil added the comment:
Yes. copy.deepcopy() works.
Didn't think of it!
--
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.
Changes by Pritish Patil :
--
nosy: +yselivanov -docs@python
___
Python tracker
<http://bugs.python.org/issue31322>
___
___
Python-bugs-list mailing list
Unsub
Changes by Pritish Patil :
--
components: +Extension Modules -Documentation, Library (Lib)
___
Python tracker
<http://bugs.python.org/issue31322>
___
___
Pytho
New submission from Pritish Patil:
I am new here and not sure how I can suggest this properly.
When using nested SimpleNamespaces, a making a copy by using
new_NS=SimpleNamespace(**namespace.__dict__.copy())
only copies the highest level namespace. This is expected in python as shallow