Message319765
| 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 | <1529171971.89.0.56676864532.issue33880@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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) |
|
| History | |||
|---|---|---|---|
| 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 | |