Allow actual EnumValue class to be overridden
Bug #1132976 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flufl.enum |
Fix Released
|
Wishlist
|
Barry Warsaw |
Bug Description
It might be interesting/useful to allow for overriding or deriving from the EnumValue class that the metaclass uses. This could be used for example to implement ordered comparisons for those enums that want it.
Related branches
lp:~barry/flufl.enum/lp1132976
- Barry Warsaw: Pending requested
-
Diff: 1029 lines (+512/-240) (has conflicts)8 files modified.bzrignore (+1/-0)
example.py (+41/-0)
flufl/enum/NEWS.rst (+9/-5)
flufl/enum/__init__.py (+3/-2)
flufl/enum/_enum.py (+117/-61)
flufl/enum/docs/using.rst (+264/-171)
flufl/enum/tests/test_enum.py (+73/-1)
template.py (+4/-0)
Changed in flufl.enum: | |
milestone: | none → 3.4 |
assignee: | nobody → Barry Warsaw (barry) |
status: | New → In Progress |
Changed in flufl.enum: | |
status: | In Progress → Fix Committed |
Changed in flufl.enum: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Suggestions for syntax/ implementation are welcome.