Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ed8cf7a5
Kaydet (Commit)
ed8cf7a5
authored
May 21, 2012
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#14875: Use float('inf') instead of float('1e66666') in the json module.
üst
5f045ea4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
encoder.py
Lib/json/encoder.py
+1
-2
NEWS
Misc/NEWS
+3
-1
No files found.
Lib/json/encoder.py
Dosyayı görüntüle @
ed8cf7a5
...
...
@@ -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
):
...
...
Misc/NEWS
Dosyayı görüntüle @
ed8cf7a5
...
...
@@ -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
.
...
...
@@ -119,7 +121,7 @@ Library
- Issue #13684: Fix httplib tunnel issue of infinite loops for certain sites
which send EOF without trailing \r\n.
- Issue #14308: Fix an exception when a "dummy" thread is in the threading
module'
s
active
list
after
a
fork
().
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment