Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: third_party/google-endpoints/enum34-1.1.6.dist-info/METADATA

Issue 2666783008: Add google-endpoints to third_party/. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 Metadata-Version: 2.0
2 Name: enum34
3 Version: 1.1.6
4 Summary: Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4
5 Home-page: https://bitbucket.org/stoneleaf/enum34
6 Author: Ethan Furman
7 Author-email: ethan@stoneleaf.us
8 License: BSD License
9 Platform: UNKNOWN
10 Classifier: Development Status :: 5 - Production/Stable
11 Classifier: Intended Audience :: Developers
12 Classifier: License :: OSI Approved :: BSD License
13 Classifier: Programming Language :: Python
14 Classifier: Topic :: Software Development
15 Classifier: Programming Language :: Python :: 2.4
16 Classifier: Programming Language :: Python :: 2.5
17 Classifier: Programming Language :: Python :: 2.6
18 Classifier: Programming Language :: Python :: 2.7
19 Classifier: Programming Language :: Python :: 3.3
20 Classifier: Programming Language :: Python :: 3.4
21 Classifier: Programming Language :: Python :: 3.5
22 Provides: enum
23
24 enum --- support for enumerations
25 ========================================
26
27 An enumeration is a set of symbolic names (members) bound to unique, constant
28 values. Within an enumeration, the members can be compared by identity, and
29 the enumeration itself can be iterated over.
30
31 from enum import Enum
32
33 class Fruit(Enum):
34 apple = 1
35 banana = 2
36 orange = 3
37
38 list(Fruit)
39 # [<Fruit.apple: 1>, <Fruit.banana: 2>, <Fruit.orange: 3>]
40
41 len(Fruit)
42 # 3
43
44 Fruit.banana
45 # <Fruit.banana: 2>
46
47 Fruit['banana']
48 # <Fruit.banana: 2>
49
50 Fruit(2)
51 # <Fruit.banana: 2>
52
53 Fruit.banana is Fruit['banana'] is Fruit(2)
54 # True
55
56 Fruit.banana.name
57 # 'banana'
58
59 Fruit.banana.value
60 # 2
61
62 Repository and Issue Tracker at https://bitbucket.org/stoneleaf/enum34.
63
64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698