Remove unnecessary duplication
This commit is contained in:
parent
d3c26c354d
commit
617d74e66e
|
@ -116,14 +116,6 @@ Enumeration values have nice, human readable string representations::
|
|||
>>> print(repr(Colors.red))
|
||||
<EnumValue: Colors.red [value=1]>
|
||||
|
||||
The enumeration value names are available through the class members::
|
||||
|
||||
>>> for member in Colors.__members__:
|
||||
... print(member)
|
||||
red
|
||||
green
|
||||
blue
|
||||
|
||||
You can get the enumeration class object from an enumeration value::
|
||||
|
||||
>>> cls = Colors.red.enum
|
||||
|
|
Loading…
Reference in New Issue