STINNER Victor <vstin...@python.org> added the comment:
I changed the issue title to focus this issue on enhance dataclasses to support @dataclasses.dataclass(slots=True) on methods using closures: it would be a new Python 3.11 feature. I created https://bugs.python.org/issue47143 "Add functools.copy_class() which updates closures". ---------- nosy: +vstinner title: 3.11a4: a small attrs regression -> RFE: @dataclasses.dataclass(slots=True) doesn't support methods using closures type: behavior -> enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46404> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com