[issue5836] Clean up float parsing code for nans and infs

Mark Dickinson report at bugs.python.org
Sat Apr 25 13:02:27 CEST 2009


New submission from Mark Dickinson <dickinsm at gmail.com>:

The special-case code that parses infs and nans should be moved from
Objects/floatobject.c to Python/pystrtod.c, so that it's available
for other places that want to parse nans and infs.

The fallback version of PyOS_ascii_strtod needs to recognize nans and 
infinities in a platform-independent manner.

----------
assignee: marketdickinson
components: Interpreter Core
messages: 86464
nosy: eric.smith, marketdickinson
priority: normal
severity: normal
status: open
title: Clean up float parsing code for nans and infs
versions: Python 2.7, Python 3.1

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


More information about the Python-bugs-list mailing list