[New-bugs-announce] [issue32279] Pass keyword arguments from dataclasses.make_dataclass() to @dataclass.

Eric V. Smith report at bugs.python.org
Mon Dec 11 14:58:58 EST 2017


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

make_dataclass() should take optional keyword only arguments and pass them to @dataclass() when it uses it after it creates a new class.

The parameters are:
init=True, repr=True, eq=True, order=False, hash=None, frozen=False

Obviously, these should reflect their default values in @dataclass, should that ever change.

----------
assignee: eric.smith
components: Library (Lib)
messages: 308074
nosy: eric.smith, levkivskyi, rhettinger
priority: normal
severity: normal
status: open
title: Pass keyword arguments from dataclasses.make_dataclass() to @dataclass.
versions: Python 3.7

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


More information about the New-bugs-announce mailing list