Commit 5a67c077 authored by Ezio Melotti's avatar Ezio Melotti

#14875: Use float('inf') instead of float('1e66666') in the json module.

parent df40f3d1
...@@ -27,8 +27,7 @@ for i in range(0x20): ...@@ -27,8 +27,7 @@ for i in range(0x20):
ESCAPE_DCT.setdefault(chr(i), '\\u{0:04x}'.format(i)) ESCAPE_DCT.setdefault(chr(i), '\\u{0:04x}'.format(i))
#ESCAPE_DCT.setdefault(chr(i), '\\u%04x' % (i,)) #ESCAPE_DCT.setdefault(chr(i), '\\u%04x' % (i,))
# Assume this produces an infinity on all machines (probably not guaranteed) INFINITY = float('inf')
INFINITY = float('1e66666')
FLOAT_REPR = repr FLOAT_REPR = repr
def encode_basestring(s): def encode_basestring(s):
......
...@@ -64,6 +64,8 @@ Core and Builtins ...@@ -64,6 +64,8 @@ Core and Builtins
Library Library
------- -------
- Issue #14875: Use float('inf') instead of float('1e66666') in the json module.
- Issue #14572: Prevent build failures with pre-3.5.0 versions of - Issue #14572: Prevent build failures with pre-3.5.0 versions of
sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4. sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.
...@@ -119,7 +121,7 @@ Library ...@@ -119,7 +121,7 @@ Library
- Issue #13684: Fix httplib tunnel issue of infinite loops for certain sites - Issue #13684: Fix httplib tunnel issue of infinite loops for certain sites
which send EOF without trailing \r\n. which send EOF without trailing \r\n.
- Issue #14308: Fix an exception when a "dummy" thread is in the threading - Issue #14308: Fix an exception when a "dummy" thread is in the threading
module's active list after a fork(). module's active list after a fork().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment