[Python-checkins] peps: Minor formatting fixes to PEP 485, missed in the first pass

chris.angelico python-checkins at python.org
Thu Jan 22 02:26:22 CET 2015


https://hg.python.org/peps/rev/8a43472e1c12
changeset:   5678:8a43472e1c12
user:        Chris Angelico <rosuav at gmail.com>
date:        Thu Jan 22 12:25:26 2015 +1100
summary:
  Minor formatting fixes to PEP 485, missed in the first pass

files:
  pep-0485.txt |  20 ++++++++++----------
  1 files changed, 10 insertions(+), 10 deletions(-)


diff --git a/pep-0485.txt b/pep-0485.txt
--- a/pep-0485.txt
+++ b/pep-0485.txt
@@ -103,14 +103,14 @@
 comparisons, and subtraction.  The code will be written and tested to
 accommodate these types:
 
- * ``Decimal``
+* ``Decimal``
 
- * ``int``
+* ``int``
 
- * ``Fraction``
+* ``Fraction``
  
- * ``complex``: for complex, ``abs(z)`` will be used for scaling and
-   comparison.
+* ``complex``: for complex, ``abs(z)`` will be used for scaling and
+  comparison.
 
 
 Behavior near zero
@@ -134,7 +134,7 @@
 ===================
 
 There are essentially two ways to think about how close two numbers
-are to each-other: absolute difference: simple ``abs(a-b)``, and
+are to each-other: absolute difference: simply ``abs(a-b)``, and
 relative difference: ``abs(a-b)/scale_factor`` [2]_. The absolute
 difference is trivial enough that this proposal focuses on the
 relative difference.
@@ -142,13 +142,13 @@
 Usually, the scale factor is some function of the values under
 consideration, for instance: 
 
- 1) The absolute value of one of the input values
+1) The absolute value of one of the input values
 
- 2) The maximum absolute value of the two
+2) The maximum absolute value of the two
 
- 3) The minimum absolute value of the two.
+3) The minimum absolute value of the two.
 
- 4) The arithmetic mean of the two
+4) The arithmetic mean of the two
 
 
 Symmetry

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list