Alternative for allowing (some) aliasing
Bug #1179529 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flufl.enum |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Nick had an interesting idea in Python issue17959 - allow aliasing via
class Shape(Enum):
square = 1
diamond = 3
circle = 2
alias_
Guido has pronounce against this for stdlib enum, but since flufl.enum already doesn't allow for duplicates/aliases, this might be an interesting way to relax that constraint without the risk of unintended duplicates.
Changed in flufl.enum: | |
status: | New → Won't Fix |
To post a comment you must log in.