[New-bugs-announce] [issue1729] Allow float('infinity') as well as float('inf')

Mark Dickinson report at bugs.python.org
Thu Jan 3 20:39:27 CET 2008


New submission from Mark Dickinson:

This request relates to issue 1635:

http://bugs.python.org/issue1635

which allows cross-platform creation of infinities and nans.
The IEEE754 standard, the C99 standard, and the standard on which 
Decimal is based all allow creation of an infinity from the string 
'Infinity' (case-independent), as well as from 'inf'.  Is there any 
reason not to allow this for floats?  I'm happy to create a patch.

----------
components: Interpreter Core
messages: 59146
nosy: marketdickinson
severity: minor
status: open
title: Allow float('infinity') as well as float('inf')
type: rfe
versions: Python 2.6, Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1729>
__________________________________


More information about the New-bugs-announce mailing list