[New-bugs-announce] [issue42269] Add ability to set __slots__ in dataclasses

Eric V. Smith report at bugs.python.org
Thu Nov 5 10:38:14 EST 2020


New submission from Eric V. Smith <eric at trueblade.com>:

I resisted adding the ability to set __slots__ in the first version of dataclasses, since it requires that instead of modifying an existing class, an entirely new class is returned.

But I think this feature would be useful enough that I'm now willing to add it. I have the code ready, I just need to work on tests and documentation.

----------
assignee: eric.smith
components: Library (Lib)
messages: 380416
nosy: eric.smith
priority: normal
severity: normal
status: open
title: Add ability to set __slots__ in dataclasses
type: behavior
versions: Python 3.10

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


More information about the New-bugs-announce mailing list