Use Ellipsis to denote special/automatic syntax
Bug #1124357 reported by
Barry Warsaw
This bug report is a duplicate of:
Bug #1110507: In Python 3.3, support auto-numbering of items.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flufl.enum |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
On python-ideas, Georg Brandl provided some nice syntax:
class Color(Enum):
RED = 1
GREEN = ... # becomes 2
BLUE = ... # 3
MAGENTA = 5
FLUFL = ... # 6
class Color(FlagEnum):
RED = 1
GREEN = ... # becomes 2
BLUE = ... # 4
MAGENTA = 16
FLUFL = ...
class Color(StringEnum):
RED = ... # becomes 'red'
GREEN = ... # etc.
BLUE = ...
Changed in flufl.enum: | |
importance: | Undecided → Wishlist |
Changed in flufl.enum: | |
status: | New → Triaged |
To post a comment you must log in.