The original motiviation is unnecessary to describe the API.

This commit is contained in:
Barry Warsaw 2013-04-12 15:01:05 -04:00
parent 8ea4fd96b4
commit 455e1fcc45
1 changed files with 1 additions and 2 deletions

View File

@ -124,8 +124,7 @@ The enumeration value names are available through the class members::
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__)