Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 945a3ad + 898d51d commit 4226543Copy full SHA for 4226543
2 files changed
Lib/json/encoder.py
@@ -27,8 +27,7 @@
27
ESCAPE_DCT.setdefault(chr(i), '\\u{0:04x}'.format(i))
28
#ESCAPE_DCT.setdefault(chr(i), '\\u%04x' % (i,))
29
30
-# Assume this produces an infinity on all machines (probably not guaranteed)
31
-INFINITY = float('1e66666')
+INFINITY = float('inf')
32
FLOAT_REPR = repr
33
34
def encode_basestring(s):
Misc/NEWS
@@ -42,6 +42,8 @@ Core and Builtins
42
Library
43
-------
44
45
+- Issue #14875: Use float('inf') instead of float('1e66666') in the json module.
46
+
47
- Issue #13585: Added contextlib.ExitStack
48
49
- PEP 3144, Issue #14814: Added the ipaddress module
0 commit comments