[issue27412] float('∞') returns 8.0

David Howlett report at bugs.python.org
Wed Jun 29 07:26:37 EDT 2016


New submission from David Howlett:

float('inf') returns a float with a value of inf
float('∞') returns a float with a value of 8.0

I can't think of any justification for returning 8.0 other then ∞ looks like an 8 turned sideways. I believe float('∞') should return inf.

----------
components: Unicode
messages: 269475
nosy: David Howlett, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: float('∞') returns 8.0
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27412>
_______________________________________


More information about the Python-bugs-list mailing list