From: R. David Murray Date: Mon, 23 Nov 2009 03:13:23 +0000 (+0000) Subject: Update example in doctest chapter that uses math.floor to reflect the X-Git-Tag: v3.2a1~2141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c5714f78cc384deb696f48a02c015f6e492d403;p=python 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. --- diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst index 2aa3ae163f..4952e053bd 100644 --- a/Doc/library/doctest.rst +++ b/Doc/library/doctest.rst @@ -343,7 +343,7 @@ The fine print: >>> 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.