[Python-checkins] peps: Mention the convenience API in the creation section
eli.bendersky
python-checkins at python.org
Sat Apr 6 06:02:43 CEST 2013
http://hg.python.org/peps/rev/9905fea93522
changeset: 4837:9905fea93522
user: Eli Bendersky <eliben at gmail.com>
date: Fri Apr 05 21:02:21 2013 -0700
summary:
Mention the convenience API in the creation section
files:
pep-0435.txt | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pep-0435.txt b/pep-0435.txt
--- a/pep-0435.txt
+++ b/pep-0435.txt
@@ -96,7 +96,8 @@
----------------
Enumerations are created using the class syntax, which makes them easy to read
-and write. Every enumeration value must have a unique integer value and the
+and write. An alternative creation method is described in `Convenience API`_.
+Every enumeration value must have a unique integer value and the
only restriction on their names is that they must be valid Python identifiers.
To define an enumeration, derive from the ``Enum`` class and add attributes
with assignment to their integer values::
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list