Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow float('infinity') as well as float('inf') #46070

Closed
mdickinson opened this issue Jan 3, 2008 · 2 comments
Closed

Allow float('infinity') as well as float('inf') #46070

mdickinson opened this issue Jan 3, 2008 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@mdickinson
Copy link
Member

BPO 1729
Nosy @mdickinson

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 = None
closed_at = <Date 2008-01-03.20:33:52.416>
created_at = <Date 2008-01-03.19:39:27.453>
labels = ['interpreter-core', 'type-feature', 'invalid']
title = "Allow float('infinity') as well as float('inf')"
updated_at = <Date 2008-01-03.20:33:52.415>
user = 'https://github.com/mdickinson'

bugs.python.org fields:

activity = <Date 2008-01-03.20:33:52.415>
actor = 'gvanrossum'
assignee = 'none'
closed = True
closed_date = <Date 2008-01-03.20:33:52.416>
closer = 'gvanrossum'
components = ['Interpreter Core']
creation = <Date 2008-01-03.19:39:27.453>
creator = 'mark.dickinson'
dependencies = []
files = []
hgrepos = []
issue_num = 1729
keywords = []
message_count = 2.0
messages = ['59146', '59149']
nosy_count = 1.0
nosy_names = ['mark.dickinson']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue1729'
versions = ['Python 2.6', 'Python 3.0']

@mdickinson
Copy link
Member Author

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 mdickinson added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jan 3, 2008
@mdickinson
Copy link
Member Author

Sorry: brain not working. Please close as invalid.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants