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

Unified Diff: third_party/google-endpoints/enum34-1.1.6.dist-info/DESCRIPTION.rst

Issue 2666783008: Add google-endpoints to third_party/. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/google-endpoints/enum34-1.1.6.dist-info/DESCRIPTION.rst
diff --git a/third_party/google-endpoints/enum34-1.1.6.dist-info/DESCRIPTION.rst b/third_party/google-endpoints/enum34-1.1.6.dist-info/DESCRIPTION.rst
new file mode 100644
index 0000000000000000000000000000000000000000..ff89b8dbe11cde7f30e16e170454169e8c771b01
--- /dev/null
+++ b/third_party/google-endpoints/enum34-1.1.6.dist-info/DESCRIPTION.rst
@@ -0,0 +1,41 @@
+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)
+ # [<Fruit.apple: 1>, <Fruit.banana: 2>, <Fruit.orange: 3>]
+
+ len(Fruit)
+ # 3
+
+ Fruit.banana
+ # <Fruit.banana: 2>
+
+ Fruit['banana']
+ # <Fruit.banana: 2>
+
+ Fruit(2)
+ # <Fruit.banana: 2>
+
+ Fruit.banana is Fruit['banana'] is Fruit(2)
+ # True
+
+ Fruit.banana.name
+ # 'banana'
+
+ Fruit.banana.value
+ # 2
+
+Repository and Issue Tracker at https://bitbucket.org/stoneleaf/enum34.
+
+
« no previous file with comments | « third_party/google-endpoints/enum/__init__.py ('k') | third_party/google-endpoints/enum34-1.1.6.dist-info/INSTALLER » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698