[Python-checkins] peps: The original motiviation is unnecessary to describe the API.
barry.warsaw
python-checkins at python.org
Fri Apr 12 21:18:38 CEST 2013
http://hg.python.org/peps/rev/67b4d6f9e6d6
changeset: 4852:67b4d6f9e6d6
user: Barry Warsaw <barry at python.org>
date: Fri Apr 12 15:01:05 2013 -0400
summary:
The original motiviation is unnecessary to describe the API.
files:
pep-0435.txt | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/pep-0435.txt b/pep-0435.txt
--- a/pep-0435.txt
+++ b/pep-0435.txt
@@ -124,8 +124,7 @@
green
blue
-Let's say you wanted to encode an enumeration value in a database. You might
-want to get the enumeration class object from an enumeration value::
+You can get the enumeration class object from an enumeration value::
>>> cls = Colors.red.enum
>>> print(cls.__name__)
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list