You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow float('infinity') as well as float('inf') #46070
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-01-03.20:33:52.416>created_at=<Date2008-01-03.19:39:27.453>labels= ['interpreter-core', 'type-feature', 'invalid']
title="Allow float('infinity') as well as float('inf')"updated_at=<Date2008-01-03.20:33:52.415>user='https://github.com/mdickinson'
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.
Activity
mdickinson commentedon Jan 3, 2008
This request relates to bpo-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.
mdickinson commentedon Jan 3, 2008
Sorry: brain not working. Please close as invalid.