Alternative for allowing (some) aliasing

Bug #1179529 reported by Barry Warsaw
6
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_for_square = square

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.

Barry Warsaw (barry)
Changed in flufl.enum:
status: New → Won't Fix
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.