New submission from Eric V. Smith <e...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42269>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to