[issue47143] Add types.copy_class() which updates closures

STINNER Victor report at bugs.python.org
Sat Apr 2 08:08:35 EDT 2022


STINNER Victor <vstinner at python.org> added the comment:

Lumír Balhar:
> Do you think it's a good idea to start a PR with a copy of the implementation from attrs for Python 3.11? We can then add tests for the new function and also some for dataclasses where this new function is needed and try to find all corner cases.

I'm worried that attrs license is MIT with an "advertisement clause" (the MIT license must be mentioned), whereas Python has a different license. I'm planning to contact the 3 authors of the code to ask their permission.

Also, I expect more feedback on this "idea" first:

> I would like to implement this function, but first I would like to discuss if it makes sense to add such function and check if it's the right abstraction.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47143>
_______________________________________


More information about the Python-bugs-list mailing list