[Python-checkins] cpython: Fix markup, add versionadded tags
zach.ware
python-checkins at python.org
Tue Aug 23 14:24:17 EDT 2016
https://hg.python.org/cpython/rev/d4c5a7883bbc
changeset: 102870:d4c5a7883bbc
user: Zachary Ware <zachary.ware at gmail.com>
date: Tue Aug 23 13:23:31 2016 -0500
summary:
Fix markup, add versionadded tags
files:
Doc/library/statistics.rst | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
--- a/Doc/library/statistics.rst
+++ b/Doc/library/statistics.rst
@@ -135,9 +135,11 @@
giving an average growth of 5.385%. Using the arithmetic mean will
give approximately 5.667%, which is too high.
- :exc:``StatisticsError`` is raised if *data* is empty, or any
+ :exc:`StatisticsError` is raised if *data* is empty, or any
element is less than zero.
+ .. versionadded:: 3.6
+
.. function:: harmonic_mean(data)
@@ -145,7 +147,7 @@
real-valued numbers.
The harmonic mean, sometimes called the subcontrary mean, is the
- reciprocal of the arithmetic :func:``mean`` of the reciprocals of the
+ reciprocal of the arithmetic :func:`mean` of the reciprocals of the
data. For example, the harmonic mean of three values *a*, *b* and *c*
will be equivalent to ``3/(1/a + 1/b + 1/c)``.
@@ -165,9 +167,11 @@
Using the arithmetic mean would give an average of about 5.167, which
is too high.
- :exc:``StatisticsError`` is raised if *data* is empty, or any element
+ :exc:`StatisticsError` is raised if *data* is empty, or any element
is less than zero.
+ .. versionadded:: 3.6
+
.. function:: median(data)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list