Use Ellipsis to denote special/automatic syntax

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

Barry Warsaw (barry)
Changed in flufl.enum:
importance: Undecided → Wishlist
Barry Warsaw (barry)
Changed in flufl.enum:
status: New → Triaged
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.