#19148: fix markup errors and wording in enum docs. Patch by Esa Peuha.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 5 Oct 2013 01:13:18 +0000 (04:13 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 5 Oct 2013 01:13:18 +0000 (04:13 +0300)
Doc/library/enum.rst
Misc/ACKS

index 0c46e1c6ec5216c2294a9f1e6e7b99406564006e..9d9e46e564f16670651c268d1c2d3946b9e59e19 100644 (file)
@@ -250,7 +250,7 @@ Equality comparisons are defined though::
     True
 
 Comparisons against non-enumeration values will always compare not equal
-(again, class:`IntEnum` was explicitly designed to behave differently, see
+(again, :class:`IntEnum` was explicitly designed to behave differently, see
 below)::
 
     >>> Color.blue == 2
@@ -594,8 +594,8 @@ alias::
 .. note::
 
     This is a useful example for subclassing Enum to add or change other
-    behaviors as well as disallowing aliases.  If the only change desired is
-    no aliases allowed the :func:`unique` decorator can be used instead.
+    behaviors as well as disallowing aliases.  If the only desired change is
+    disallowing aliases the :func:`unique` decorator can be used instead.
 
 
 Planet
@@ -671,11 +671,11 @@ the member::
     ...
     AttributeError: 'Color' object has no attribute 'blue'
 
- Likewise, the :attr:`__members__` is only available on the class.
+Likewise, the :attr:`__members__` is only available on the class.
 
- If you give your :class:`Enum` subclass extra methods, like the `Planet`_
- class above, those methods will show up in a :func:`dir` of the member,
- but not of the class::
+If you give your :class:`Enum` subclass extra methods, like the `Planet`_
+class above, those methods will show up in a :func:`dir` of the member,
+but not of the class::
 
     >>> dir(Planet)
     ['EARTH', 'JUPITER', 'MARS', 'MERCURY', 'NEPTUNE', 'SATURN', 'URANUS', 'VENUS', '__class__', '__doc__', '__members__', '__module__']
index bad2c517807207e372ef3c9dbe8def9f6d310544..1e06e49a3ecc67c923901a3a3308dc1755964000 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -988,6 +988,7 @@ Chris Petrilli
 Roumen Petrov
 Bjorn Pettersen
 Justin D. Pettit
+Esa Peuha
 Ronny Pfannschmidt
 Geoff Philbrick
 Gavrie Philipson