New submission from Sascha <sascha.schlem...@me.com>: Try from types import SimpleNamespace import copy class Person(SimpleNamespace): def __init__(self, name, **kwargs): self.name = name super().__init__(**kwargs)
bob = Person('Bob', job='tester') clone = copy.copy(bob) For me this results in TypeError: __init__() missing 1 required positional argument: 'name' ---------- components: Library (Lib) messages: 317266 nosy: stereobutter priority: normal severity: normal status: open title: Copying objects subclassed from SimpleNamespace doesn't work type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33599> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com