Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 522 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 522 Bytes

Build Status Coverage Status

Enum type that autoincrements values without explicit assignment

>>> from enum3 import Enum

>>> class Fruit(Enum):
...     apple
...     berry
...     cherry

>>> Fruit.apple
0

>>> Fruit.berry
1

>>> Fruit.cherry
2

Note: requires Python 3