Message321370
| Author | rs2 |
|---|---|
| Recipients | rs2 |
| Date | 2018-07-10.09:43:46 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1531215826.62.0.56676864532.issue34082@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
```python
class Foo:
pass
class Works(str, Foo, Enum):
BAR = 'baz'
class Fails(Foo, str, Enum):
BAR = 'baz'
```
`Fails` fails to be created with an error:
`TypeError: object.__new__(Fails) is not safe, use Fails.__new__()`
See https://github.com/python/cpython/blob/e57f91a0f0d5700ec466c9dd0fd2d2b5323a5e76/Lib/enum.py#L205 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-07-10 09:43:46 | rs2 | set | recipients: + rs2 |
| 2018-07-10 09:43:46 | rs2 | set | messageid: <1531215826.62.0.56676864532.issue34082@psf.upfronthosting.co.za> |
| 2018-07-10 09:43:46 | rs2 | link | issue34082 messages |
| 2018-07-10 09:43:46 | rs2 | create | |