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.
1 parent dfa4652 commit 898d51dCopy full SHA for 898d51d
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
@@ -67,6 +67,8 @@ Core and Builtins
67
Library
68
-------
69
70
+- Issue #14875: Use float('inf') instead of float('1e66666') in the json module.
71
+
72
- Issue #14426: Correct the Date format in Expires attribute of Set-Cookie
73
Header in Cookie.py.
74
0 commit comments