This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients John Cooke, eric.smith
Date 2018-06-16.17:59:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Not that it really matters to this issue, but here's how dataclasses and attrs deal with this:

dataclasses has the same issue, via make_dataclass().

attrs gives a syntax error with your field names, but interestingly this succeeds:

>>> Foo = attr,make_class('Foo', ['a', 'b', 'a'])
>>> Foo(1, 3)

I'll open a corresponding issue for dataclasses.
Foo(a=1, b=3)
Date User Action Args
2018-06-16 17:59:31eric.smithsetrecipients: + eric.smith, John Cooke
2018-06-16 17:59:31eric.smithsetmessageid: <>
2018-06-16 17:59:31eric.smithlinkissue33880 messages
2018-06-16 17:59:31eric.smithcreate