[New-bugs-announce] [issue7377] Slight difference: math.floor returns an Integral

flox report at bugs.python.org
Sun Nov 22 19:09:56 CET 2009


New submission from flox <laxyf at yahoo.fr>:

The last code snippet on section "25.2.3.2 How are Docstring Examples
Recognized?" does not output the expected result.
http://docs.python.org/dev/py3k/library/doctest.html#how-are-docstring-examples-recognized


Documentation example:

    >>> assert "Easy!"
          >>> import math
              >>> math.floor(1.9)
              1.0

Real life (Python 3.1):
    >>> math.floor(1.9)
    1

----------
assignee: georg.brandl
components: Documentation
messages: 95606
nosy: flox, georg.brandl
severity: normal
status: open
title: Slight difference: math.floor returns an Integral
versions: Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7377>
_______________________________________


More information about the New-bugs-announce mailing list