[Python-checkins] r82825 - in python/branches/py3k/Doc/library: cmath.rst math.rst

mark.dickinson python-checkins at python.org
Sun Jul 11 21:47:37 CEST 2010


Author: mark.dickinson
Date: Sun Jul 11 21:47:37 2010
New Revision: 82825

Log:
Include versionadded in (c)math.isfinite docs (thanks Ezio Melotti).  Other minor doc cleanups.

Modified:
   python/branches/py3k/Doc/library/cmath.rst
   python/branches/py3k/Doc/library/math.rst

Modified: python/branches/py3k/Doc/library/cmath.rst
==============================================================================
--- python/branches/py3k/Doc/library/cmath.rst	(original)
+++ python/branches/py3k/Doc/library/cmath.rst	Sun Jul 11 21:47:37 2010
@@ -189,19 +189,22 @@
 
 .. function:: isfinite(x)
 
-   Return ``True`` if both the real and imaginary parts of *x* are finite,
-   and ``False`` otherwise.
+   Return ``True`` if both the real and imaginary parts of *x* are finite, and
+   ``False`` otherwise.
+
+   .. versionadded:: 3.2
 
 
 .. function:: isinf(x)
 
-   Return *True* if the real or the imaginary part of x is positive
-   or negative infinity.
+   Return ``True`` if either the real or the imaginary part of *x* is an
+   infinity, and ``False`` otherwise.
 
 
 .. function:: isnan(x)
 
-   Return *True* if the real or imaginary part of x is not a number (NaN).
+   Return ``True`` if either the real or the imaginary part of *x* is a NaN,
+   and ``False`` otherwise.
 
 
 Constants

Modified: python/branches/py3k/Doc/library/math.rst
==============================================================================
--- python/branches/py3k/Doc/library/math.rst	(original)
+++ python/branches/py3k/Doc/library/math.rst	Sun Jul 11 21:47:37 2010
@@ -102,16 +102,18 @@
    Return ``True`` if *x* is neither an infinity nor a NaN, and
    ``False`` otherwise.  (Note that ``0.0`` *is* considered finite.)
 
+   .. versionadded:: 3.2
+
 
 .. function:: isinf(x)
 
-   Check if the float *x* is positive or negative infinity.
+   Return ``True`` if *x* is a positive or negative infinity, and
+   ``False`` otherwise.
 
 
 .. function:: isnan(x)
 
-   Check if the float *x* is a NaN (not a number).  For more information
-   on NaNs, see the IEEE 754 standards.
+   Return ``True`` if *x* is a NaN (not a number), and ``False`` otherwise.
 
 
 .. function:: ldexp(x, i)


More information about the Python-checkins mailing list