Skip to main content

Timeline for How to copy a class?

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
Dec 2, 2020 at 0:06 review Suggested edits
Dec 2, 2020 at 1:33
Jun 23, 2020 at 17:01 comment added DylanYoung Not that a custom __setattr__ on a metaclass will break this. Probably better to populate the new class's dict directly
Mar 17, 2018 at 22:00 history edited willtalmadge CC BY-SA 3.0
The setattr was operating on the original class so this technically worked but it's kind of a weird way to do it. This could break some reasonable assumptions so I fixed it.
Mar 16, 2018 at 21:39 history answered willtalmadge CC BY-SA 3.0