[issue27412] float('∞') returns 8.0

Ashwini Chaudhary report at bugs.python.org
Wed Jun 29 07:43:54 EDT 2016


Ashwini Chaudhary added the comment:

float('∞') raised ValueError as expected: ValueError: could not convert string to float: '∞'

I am not sure how you ended up with 8.0.

----------
nosy: +ashwch

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


More information about the Python-bugs-list mailing list