Message227679
I'd like Enum objects to expose their serial numbers. Currently it seems the only way to get this is `MyEnum._member_names_.index(my_enum.name)`, which is not cool because it's cumbersome and involves private variables.
Perhaps we can use `int(my_enum) == 7`? Or `my_enum.number == 7`? I'll be happy to make a patch if there's agreement about this. |
|
Date |
User |
Action |
Args |
2014-09-27 14:40:46 | cool-RR | set | recipients:
+ cool-RR |
2014-09-27 14:40:46 | cool-RR | set | messageid: <1411828846.19.0.205599343734.issue22505@psf.upfronthosting.co.za> |
2014-09-27 14:40:46 | cool-RR | link | issue22505 messages |
2014-09-27 14:40:45 | cool-RR | create | |
|