Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7377] Slight difference: math.floor returns an Integral

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 22, 2009, 10:09 AM

Post #1 of 2 (161 views)
Permalink
[issue7377] Slight difference: math.floor returns an Integral

New submission from flox <laxyf [at] yahoo>:

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>
<http://bugs.python.org/issue7377>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 22, 2009, 7:16 PM

Post #2 of 2 (142 views)
Permalink
[issue7377] Slight difference: math.floor returns an Integral [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

Fixed in r76448 and r76449. Thanks for pointing this out.

----------
nosy: +r.david.murray
priority: -> normal
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
type: -> behavior

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7377>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.