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
ab5dae35
Kaydet (Commit)
ab5dae35
authored
Haz 24, 2002
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix SF bug 572567: Memory leak in object comparison.
üst
563d12d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
test_descr.py
Lib/test/test_descr.py
+12
-0
ACKS
Misc/ACKS
+1
-0
typeobject.c
Objects/typeobject.c
+1
-0
No files found.
Lib/test/test_descr.py
Dosyayı görüntüle @
ab5dae35
...
@@ -1163,6 +1163,18 @@ def slots():
...
@@ -1163,6 +1163,18 @@ def slots():
gc
.
collect
()
gc
.
collect
()
vereq
(
Counted
.
counter
,
0
)
vereq
(
Counted
.
counter
,
0
)
# Test lookup leaks [SF bug 572567]
import
sys
,
gc
class
G
(
object
):
def
__cmp__
(
self
,
other
):
return
0
g
=
G
()
orig_objects
=
len
(
gc
.
get_objects
())
for
i
in
xrange
(
10
):
g
==
g
new_objects
=
len
(
gc
.
get_objects
())
vereq
(
orig_objects
,
new_objects
)
def
dynamics
():
def
dynamics
():
if
verbose
:
print
"Testing class attribute propagation..."
if
verbose
:
print
"Testing class attribute propagation..."
class
D
(
object
):
class
D
(
object
):
...
...
Misc/ACKS
Dosyayı görüntüle @
ab5dae35
...
@@ -233,6 +233,7 @@ John Interrante
...
@@ -233,6 +233,7 @@ John Interrante
Ben Jackson
Ben Jackson
Paul Jackson
Paul Jackson
David Jacobs
David Jacobs
Kevin Jacobs
Geert Jansen
Geert Jansen
Jack Jansen
Jack Jansen
Bill Janssen
Bill Janssen
...
...
Objects/typeobject.c
Dosyayı görüntüle @
ab5dae35
...
@@ -3286,6 +3286,7 @@ half_compare(PyObject *self, PyObject *other)
...
@@ -3286,6 +3286,7 @@ half_compare(PyObject *self, PyObject *other)
res
=
PyObject_Call
(
func
,
args
,
NULL
);
res
=
PyObject_Call
(
func
,
args
,
NULL
);
Py_DECREF
(
args
);
Py_DECREF
(
args
);
}
}
Py_DECREF
(
func
);
if
(
res
!=
Py_NotImplemented
)
{
if
(
res
!=
Py_NotImplemented
)
{
if
(
res
==
NULL
)
if
(
res
==
NULL
)
return
-
2
;
return
-
2
;
...
...
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