]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue 3188: accept float('infinity') as well as float('inf'). This
authorMark Dickinson <dickinsm@gmail.com>
Sat, 5 Jul 2008 11:33:52 +0000 (11:33 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 5 Jul 2008 11:33:52 +0000 (11:33 +0000)
commitbf9f4d801530f4b4f40fe7baf93b1b4d55873275
tree5e0027737673ad3b9a34f262f46b8bd16775a2e0
parente78fbcce3e9fef7d4f701971186baa4bdec6b9b1
Issue 3188: accept float('infinity') as well as float('inf').  This
makes the float constructor behave in the same way as specified
by various other language standards, including C99, IEEE 754r,
and the IBM Decimal standard.
Lib/test/test_float.py
Objects/floatobject.c