[issue14875] Unusual way of doing 'Inf' in json library
Sasha B
report at bugs.python.org
Tue May 22 00:39:01 CEST 2012
New submission from Sasha B <sbermeister at gmail.com>:
If you have a look at the file 'python/Lib/json/encode.py', on line 30 it says:
# Assume this produces an infinity on all machines (probably not guaranteed)
INFINITY = float('1e66666')
FLOAT_REPR = repr
Isn't float('Inf') an accepted way of doing this? Should line 31 be INFINITY = float('Inf')?
Sasha
----------
components: Library (Lib)
messages: 161304
nosy: sbermeister
priority: normal
severity: normal
status: open
title: Unusual way of doing 'Inf' in json library
type: enhancement
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14875>
_______________________________________
More information about the Python-bugs-list
mailing list