Skip to content

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

Closed

Description

@mdickinson
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']

Activity

  1. mdickinson commented on Jan 3, 2008

    @mdickinson
    MemberAuthor

    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.

  2. mdickinson commented on Jan 3, 2008

    @mdickinson
    MemberAuthor

    Sorry: brain not working. Please close as invalid.

  3. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions