Message319765
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:31 | eric.smith | set | recipients:
+ eric.smith, John Cooke |
2018-06-16 17:59:31 | eric.smith | set | messageid: <1529171971.89.0.56676864532.issue33880@psf.upfronthosting.co.za> |
2018-06-16 17:59:31 | eric.smith | link | issue33880 messages |
2018-06-16 17:59:31 | eric.smith | create | |
|