Message294804
This probably shouldn't happen:
import enum
class E(enum.Enum):
A = enum.auto
B = enum.auto
x = E.B.value
print(x) # <class 'enum.auto'>
print(E(x)) # E.A
The first print() is kinda ok, I don't really care about which value was used by the implementation. But the second print() seems surprising.
By the same token, this probably shouldn't raise an exception (it does now):
import enum
@enum.unique
class E(enum.Enum):
A = enum.auto
B = enum.auto
C = object()
and `dir(E)` shouldn't skip `B` in its output (it does now). |
|
Date |
User |
Action |
Args |
2017-05-31 02:08:09 | max | set | recipients:
+ max |
2017-05-31 02:08:08 | max | set | messageid: <1496196488.98.0.634063519366.issue30517@psf.upfronthosting.co.za> |
2017-05-31 02:08:08 | max | link | issue30517 messages |
2017-05-31 02:08:08 | max | create | |
|