[issue40796] dataclasses.make_dataclass: Exception when called with different field orders

Darrick Yee report at bugs.python.org
Wed May 27 13:42:32 EDT 2020


Darrick Yee <darrick.yee at gmail.com> added the comment:

Yes, that makes sense. Thank you!

On Wed, May 27, 2020, 1:40 PM Eric V. Smith <report at bugs.python.org> wrote:

>
> Eric V. Smith <eric at trueblade.com> added the comment:
>
> No problem!
>
> It can't reorder fields, because you might not be passing them by name.
> There's some discussion about requiring keyword-only parameters, in which
> case what you're doing would work (as long as they were keyword-only
> params).
>
> ----------
> resolution:  -> not a bug
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue40796>
> _______________________________________
>

----------

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


More information about the Python-bugs-list mailing list