[issue33129] Add kwarg-only option to dataclass
Jimbo Jim
report at bugs.python.org
Thu Jul 26 21:58:57 EDT 2018
Jimbo Jim <jimbo1qaz at gmail.com> added the comment:
first post in bugs.python.org... are people normally scary around here?
Another usecase of keyword-only arguments is that I can mix default and non-default fields in any order. This could be achieved by either marking all fields as read-only, or by implicitly adding an asterisk before the first "conflicting" non-default argument (or by translating .../etc into an asterisk).
(Is it a bad idea to create a private fork of `pip install dataclasses` with implicit asterisk, purely for my own project?)
----------
nosy: +Jimbo Jim
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33129>
_______________________________________
More information about the Python-bugs-list
mailing list