[issue46404] RFE: @dataclasses.dataclass(slots=True) doesn't support methods using closures
STINNER Victor
report at bugs.python.org
Mon Mar 28 09:53:30 EDT 2022
STINNER Victor <vstinner at 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 <report at bugs.python.org>
<https://bugs.python.org/issue46404>
_______________________________________
More information about the Python-bugs-list
mailing list