mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#14875: Use float('inf') instead of float('1e66666') in the json module.
This commit is contained in:
parent
5f045ea440
commit
ed8cf7a543
2 changed files with 4 additions and 3 deletions
|
@ -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%04x' % (i,))
|
||||
|
||||
# Assume this produces an infinity on all machines (probably not guaranteed)
|
||||
INFINITY = float('1e66666')
|
||||
INFINITY = float('inf')
|
||||
FLOAT_REPR = repr
|
||||
|
||||
def encode_basestring(s):
|
||||
|
|
|
@ -64,6 +64,8 @@ Core and Builtins
|
|||
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
|
||||
sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue