Ravenports generated: 11 Apr 2020 21:29
[ravenports.git] / bucket_B9 / python-enum34
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-enum34
4 VERSION=                1.1.10
5 KEYWORDS=               python devel
6 VARIANTS=               py27
7 SDESC[py27]=            Python 3.4 Enum backported to 2.7 (PY 27)
8 HOMEPAGE=               https://bitbucket.org/stoneleaf/enum34
9 CONTACT=                Python_Automaton[python@ironwolf.systems]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PYPI/e/enum34
13 DISTFILE[1]=            enum34-1.1.10.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[py27]=            single
16
17 OPTIONS_AVAILABLE=      PY27
18 OPTIONS_STANDARD=       none
19 VOPTS[py27]=            PY27=ON
20
21 DISTNAME=               enum34-1.1.10
22
23 GENERATED=              yes
24
25 [PY27].USES_ON=                         python:py27
26
27 [FILE:816:descriptions/desc.single]
28 enum --- support for enumerations
29 ========================================
30
31 An enumeration is a set of symbolic names (members) bound to unique, constant
32 values.  Within an enumeration, the members can be compared by identity, and
33 the enumeration itself can be iterated over.
34
35     from enum import Enum
36
37     class Fruit(Enum):
38         apple = 1
39         banana = 2
40         orange = 3
41
42     list(Fruit)
43     # [<Fruit.apple: 1>, <Fruit.banana: 2>, <Fruit.orange: 3>]
44
45     len(Fruit)
46     # 3
47
48     Fruit.banana
49     # <Fruit.banana: 2>
50
51     Fruit['banana']
52     # <Fruit.banana: 2>
53
54     Fruit(2)
55     # <Fruit.banana: 2>
56
57     Fruit.banana is Fruit['banana'] is Fruit(2)
58     # True
59
60     Fruit.banana.name
61     # 'banana'
62
63     Fruit.banana.value
64     # 2
65
66 Repository and Issue Tracker at https://bitbucket.org/stoneleaf/enum34.
67
68
69
70 [FILE:99:distinfo]
71 cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248        28187 enum34-1.1.10.tar.gz
72