[Python-checkins] cpython: #19148: fix markup errors and wording in enum docs. Patch by Esa Peuha.

ezio.melotti python-checkins at python.org
Sat Oct 5 03:13:45 CEST 2013


http://hg.python.org/cpython/rev/db94fc7218fa
changeset:   85965:db94fc7218fa
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sat Oct 05 04:13:18 2013 +0300
summary:
  #19148: fix markup errors and wording in enum docs.  Patch by Esa Peuha.

files:
  Doc/library/enum.rst |  14 +++++++-------
  Misc/ACKS            |   1 +
  2 files changed, 8 insertions(+), 7 deletions(-)


diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -250,7 +250,7 @@
     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 @@
 .. 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 @@
     ...
     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__']
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -988,6 +988,7 @@
 Roumen Petrov
 Bjorn Pettersen
 Justin D. Pettit
+Esa Peuha
 Ronny Pfannschmidt
 Geoff Philbrick
 Gavrie Philipson

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list