Port variant | py27 |
Summary | Python 3.4 Enum backported to 2.7 (PY 27) |
Package version | 1.1.10 |
Homepage | https://bitbucket.org/stoneleaf/enum34 |
Keywords | python, devel |
Maintainer | Python Automaton |
License | Not yet specified |
Other variants | There are no other variants. |
Ravenports | Buildsheet | History |
Ravensource | Port Directory | History |
Last modified | 17 MAY 2020, 05:28:22 UTC |
Port created | 17 JUL 2017, 16:13:54 UTC |
single | enum --- support for enumerations
========================================
An enumeration is a set of symbolic names (members) bound to unique, constant
values. Within an enumeration, the members can be compared by identity, and
the enumeration itself can be iterated over.
from enum import Enum
class Fruit(Enum):
apple = 1
banana = 2
orange = 3
list(Fruit)
# [ |
Build and Runtime |
python27:single:standard python-setuptools:single:py27 |
main | mirror://PYPI/e/enum34 |
langkit:standard | Syntactic and semantic language analysis compiler |