This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, stereobutter
Date 2018-05-22.10:20:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526984433.45.0.682650639539.issue33599@psf.upfronthosting.co.za>
In-reply-to
Content
Right, this is because your subclass is not completely compatible with SimpleNamespace. The SimpleNamespace constructor accepts only keyword arguments, but your class requires a positional argument. You have to implement the __copy__ method for supporting shallow copying and the __deepcopy__ method for supporting deep copying. Or the __reduce__ method for supporting both shallow and deep copying and pickling.
History
Date User Action Args
2018-05-22 10:20:33serhiy.storchakasetrecipients: + serhiy.storchaka, stereobutter
2018-05-22 10:20:33serhiy.storchakasetmessageid: <1526984433.45.0.682650639539.issue33599@psf.upfronthosting.co.za>
2018-05-22 10:20:33serhiy.storchakalinkissue33599 messages
2018-05-22 10:20:33serhiy.storchakacreate