EnumValues should support __index__
Bug #1132972 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flufl.enum |
Fix Released
|
High
|
Unassigned |
Bug Description
EnumValues already support __int__ for int() coercion, however slicing doesn't use __int__ it uses __index__. It seems reasonable enough to add that special method for consistency.
Changed in flufl.enum: | |
status: | Triaged → Fix Committed |
Changed in flufl.enum: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.