This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Slight difference: math.floor returns an Integral
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.1, Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: flox, georg.brandl, r.david.murray
Priority: normal Keywords:

Created on 2009-11-22 18:09 by flox, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg95606 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2009-11-22 18:09
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
msg95612 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2009-11-23 03:16
Fixed in r76448 and r76449.  Thanks for pointing this out.
History
Date User Action Args
2022-04-11 14:56:55adminsetgithub: 51626
2009-11-23 03:16:50r.david.murraysetstatus: open -> closed
priority: normal
type: behavior


nosy: + r.david.murray
messages: + msg95612
resolution: fixed
stage: resolved
2009-11-22 18:09:55floxcreate