The original motiviation is unnecessary to describe the API.
This commit is contained in:
parent
8ea4fd96b4
commit
455e1fcc45
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue