New submission from Sasha B <sbermeis...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14875>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to