EnumValues should support __index__

Bug #1132972 reported by Barry Warsaw
6
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.

Barry Warsaw (barry)
Changed in flufl.enum:
status: Triaged → Fix Committed
Barry Warsaw (barry)
Changed in flufl.enum:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.