diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/enum.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index f07b821..b2f7b9f 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -1054,20 +1054,20 @@ class Enum(metaclass=EnumType): Access them by: - - attribute access:: + - attribute access: - >>> Color.RED - <Color.RED: 1> + >>> Color.RED + <Color.RED: 1> - value lookup: - >>> Color(1) - <Color.RED: 1> + >>> Color(1) + <Color.RED: 1> - name lookup: - >>> Color['RED'] - <Color.RED: 1> + >>> Color['RED'] + <Color.RED: 1> Enumerations can be iterated over, and know how many members they have: |