[issue14875] Unusual way of doing 'Inf' in json library

2012-05-21 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14875] Unusual way of doing 'Inf' in json library

2012-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c13066f752a8 by Ezio Melotti in branch '2.7': #14875: Use float('inf') instead of float('1e6') in the json module. http://hg.python.org/cpython/rev/c13066f752a8 New changeset 06f21c6e0f2b by Ezio Melotti in branch '3.2': #14875: Use float('inf'

[issue14875] Unusual way of doing 'Inf' in json library

2012-05-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti nosy: +ezio.melotti type: enhancement -> behavior versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue14875] Unusual way of doing 'Inf' in json library

2012-05-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14875] Unusual way of doing 'Inf' in json library

2012-05-21 Thread Sasha B
New submission from Sasha B : 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('1e6') FLOAT_REPR = repr Isn't float('Inf') an accepted way of doing this?