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
24bd5adc
Kaydet (Commit)
24bd5adc
authored
Eki 24, 2011
tarafından
Petri Lehtinen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.2
üst
36645681
a94200e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
NEWS
Misc/NEWS
+3
-0
dictobject.c
Objects/dictobject.c
+12
-4
No files found.
Misc/NEWS
Dosyayı görüntüle @
24bd5adc
...
@@ -10,6 +10,9 @@ What's New in Python 3.3 Alpha 1?
...
@@ -10,6 +10,9 @@ What's New in Python 3.3 Alpha 1?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #13018: Fix reference leaks in error paths in dictobject.c.
Patch by Suman Saha.
- Issue #13201: Define '
==
' and '
!=' to compare range objects based on
- Issue #13201: Define '
==
' and '
!=' to compare range objects based on
the
sequence
of
values
they
define
(
instead
of
comparing
based
on
the
sequence
of
values
they
define
(
instead
of
comparing
based
on
object
identity
).
object
identity
).
...
...
Objects/dictobject.c
Dosyayı görüntüle @
24bd5adc
...
@@ -1314,14 +1314,18 @@ dict_fromkeys(PyObject *cls, PyObject *args)
...
@@ -1314,14 +1314,18 @@ dict_fromkeys(PyObject *cls, PyObject *args)
PyObject
*
key
;
PyObject
*
key
;
Py_hash_t
hash
;
Py_hash_t
hash
;
if
(
dictresize
(
mp
,
Py_SIZE
(
seq
)))
if
(
dictresize
(
mp
,
Py_SIZE
(
seq
)))
{
Py_DECREF
(
d
);
return
NULL
;
return
NULL
;
}
while
(
_PyDict_Next
(
seq
,
&
pos
,
&
key
,
&
oldvalue
,
&
hash
))
{
while
(
_PyDict_Next
(
seq
,
&
pos
,
&
key
,
&
oldvalue
,
&
hash
))
{
Py_INCREF
(
key
);
Py_INCREF
(
key
);
Py_INCREF
(
value
);
Py_INCREF
(
value
);
if
(
insertdict
(
mp
,
key
,
hash
,
value
))
if
(
insertdict
(
mp
,
key
,
hash
,
value
))
{
Py_DECREF
(
d
);
return
NULL
;
return
NULL
;
}
}
}
return
d
;
return
d
;
}
}
...
@@ -1332,14 +1336,18 @@ dict_fromkeys(PyObject *cls, PyObject *args)
...
@@ -1332,14 +1336,18 @@ dict_fromkeys(PyObject *cls, PyObject *args)
PyObject
*
key
;
PyObject
*
key
;
Py_hash_t
hash
;
Py_hash_t
hash
;
if
(
dictresize
(
mp
,
PySet_GET_SIZE
(
seq
)))
if
(
dictresize
(
mp
,
PySet_GET_SIZE
(
seq
)))
{
Py_DECREF
(
d
);
return
NULL
;
return
NULL
;
}
while
(
_PySet_NextEntry
(
seq
,
&
pos
,
&
key
,
&
hash
))
{
while
(
_PySet_NextEntry
(
seq
,
&
pos
,
&
key
,
&
hash
))
{
Py_INCREF
(
key
);
Py_INCREF
(
key
);
Py_INCREF
(
value
);
Py_INCREF
(
value
);
if
(
insertdict
(
mp
,
key
,
hash
,
value
))
if
(
insertdict
(
mp
,
key
,
hash
,
value
))
{
Py_DECREF
(
d
);
return
NULL
;
return
NULL
;
}
}
}
return
d
;
return
d
;
}
}
...
...
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