Message227688
On Sep 27, 2014, at 03:35 PM, Ram Rachum wrote:
>Just because I want to be able to get the `int` value of an enum object,
>doesn't mean I want the enum object to *be* an `int`, which is what `IntEnum`
>means. I don't want it to be comparable to an int, I don't want to use
>arithmetic on it, and most importantly I don't want it to be equal to an enum
>object of a different type that happens to have the same int.
Okay, but that still doesn't explain the use case. Also, why wouldn't an Enum
subclass, possibly using the ordered dictionary __members__ would not be
sufficient. |
|
Date |
User |
Action |
Args |
2014-09-27 16:00:38 | barry | set | recipients:
+ barry, pitrou, cool-RR |
2014-09-27 16:00:38 | barry | link | issue22504 messages |
2014-09-27 16:00:38 | barry | create | |
|