[Python-checkins] r76448 - python/branches/py3k/Doc/library/doctest.rst

r.david.murray python-checkins at python.org
Mon Nov 23 04:13:23 CET 2009


Author: r.david.murray
Date: Mon Nov 23 04:13:23 2009
New Revision: 76448

Log:
Update example in doctest chapter that uses math.floor to reflect the
fact that the result is an int in py3k.  Thanks to 'flox' for pointing out
the discrepancy.


Modified:
   python/branches/py3k/Doc/library/doctest.rst

Modified: python/branches/py3k/Doc/library/doctest.rst
==============================================================================
--- python/branches/py3k/Doc/library/doctest.rst	(original)
+++ python/branches/py3k/Doc/library/doctest.rst	Mon Nov 23 04:13:23 2009
@@ -343,7 +343,7 @@
      >>> assert "Easy!"
            >>> import math
                >>> math.floor(1.9)
-               1.0
+               1
 
   and as many leading whitespace characters are stripped from the expected output
   as appeared in the initial ``'>>> '`` line that started the example.


More information about the Python-checkins mailing list