[New-bugs-announce] [issue1635] Float patch for inf and nan on Windows (and other platforms)

Christian Heimes report at bugs.python.org
Sat Dec 15 11:23:24 CET 2007


New submission from Christian Heimes:

The patch unifies the creation and representation of "inf", "-inf" and
"nan" on all platforms. 

>>> float("inf")
inf
>>> float("-inf")
-inf
>>> float("nan")
nan
>>> repr(1e300 * 1e300)
'inf'
>>> repr(1e300 * 1e300 * 0)
'nan'
>>> repr(1e300 * 1e300 * -1)
'-inf'

----------
assignee: tiran
files: trunk_float_inf_nan.patch
keywords: patch, py3k
messages: 58661
nosy: tiran
priority: normal
severity: normal
status: open
title: Float patch for inf and nan on Windows (and other platforms)
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file8961/trunk_float_inf_nan.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1635>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trunk_float_inf_nan.patch
Type: text/x-diff
Size: 6764 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071215/c20b6e94/attachment-0001.patch 


More information about the New-bugs-announce mailing list