[issue31322] SimpleNamespace deep copy

2017-09-01 Thread Pritish Patil
Pritish Patil added the comment: Yes. copy.deepcopy() works. Didn't think of it! -- stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.

[issue31322] SimpleNamespace deep copy

2017-09-01 Thread Pritish Patil
Changes by Pritish Patil : -- nosy: +yselivanov -docs@python ___ Python tracker <http://bugs.python.org/issue31322> ___ ___ Python-bugs-list mailing list Unsub

[issue31322] SimpleNamespace deep copy

2017-09-01 Thread Pritish Patil
Changes by Pritish Patil : -- components: +Extension Modules -Documentation, Library (Lib) ___ Python tracker <http://bugs.python.org/issue31322> ___ ___ Pytho

[issue31322] SimpleNamespace deep copy

2017-09-01 Thread Pritish Patil
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