From 5fb856ed65a27ccec4a4ff1532d50fa97874df23 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 5 Apr 2013 21:02:21 -0700 Subject: [PATCH] Mention the convenience API in the creation section --- pep-0435.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pep-0435.txt b/pep-0435.txt index f5af108b9..5b335c993 100644 --- a/pep-0435.txt +++ b/pep-0435.txt @@ -96,7 +96,8 @@ Creating an Enum ---------------- 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::