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
77b3ae5e
Kaydet (Commit)
77b3ae5e
authored
May 13, 2015
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23971: Fix underestimated presizing in dict.fromkeys()
üst
bd049190
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
NEWS
Misc/NEWS
+2
-0
dictobject.c
Objects/dictobject.c
+2
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
77b3ae5e
...
@@ -25,6 +25,8 @@ Core and Builtins
...
@@ -25,6 +25,8 @@ Core and Builtins
-
Issue
#
20274
:
When
calling
a
_sqlite
.
Connection
,
it
now
complains
if
passed
-
Issue
#
20274
:
When
calling
a
_sqlite
.
Connection
,
it
now
complains
if
passed
any
keyword
arguments
.
Previously
it
silently
ignored
them
.
any
keyword
arguments
.
Previously
it
silently
ignored
them
.
-
Issue
#
23971
:
Fix
underestimated
presizing
in
dict
.
fromkeys
().
-
Issue
#
20274
:
Remove
ignored
and
erroneous
"kwargs"
parameters
from
three
-
Issue
#
20274
:
Remove
ignored
and
erroneous
"kwargs"
parameters
from
three
METH_VARARGS
methods
on
_sqlite
.
Connection
.
METH_VARARGS
methods
on
_sqlite
.
Connection
.
...
...
Objects/dictobject.c
Dosyayı görüntüle @
77b3ae5e
...
@@ -1361,7 +1361,7 @@ dict_fromkeys(PyObject *cls, PyObject *args)
...
@@ -1361,7 +1361,7 @@ dict_fromkeys(PyObject *cls, PyObject *args)
PyObject
*
key
;
PyObject
*
key
;
long
hash
;
long
hash
;
if
(
dictresize
(
mp
,
Py_SIZE
(
seq
)))
{
if
(
dictresize
(
mp
,
Py_SIZE
(
seq
)
/
2
*
3
))
{
Py_DECREF
(
d
);
Py_DECREF
(
d
);
return
NULL
;
return
NULL
;
}
}
...
@@ -1382,7 +1382,7 @@ dict_fromkeys(PyObject *cls, PyObject *args)
...
@@ -1382,7 +1382,7 @@ dict_fromkeys(PyObject *cls, PyObject *args)
PyObject
*
key
;
PyObject
*
key
;
long
hash
;
long
hash
;
if
(
dictresize
(
mp
,
PySet_GET_SIZE
(
seq
)))
{
if
(
dictresize
(
mp
,
PySet_GET_SIZE
(
seq
)
/
2
*
3
))
{
Py_DECREF
(
d
);
Py_DECREF
(
d
);
return
NULL
;
return
NULL
;
}
}
...
...
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