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
001f228f
Kaydet (Commit)
001f228f
authored
Kas 08, 2003
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improve the reverse list iterator to free memory as soon as the iterator
is exhausted.
üst
e21f6066
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
listobject.c
Objects/listobject.c
+4
-1
No files found.
Objects/listobject.c
Dosyayı görüntüle @
001f228f
...
@@ -2771,7 +2771,7 @@ PyTypeObject PyListIter_Type = {
...
@@ -2771,7 +2771,7 @@ PyTypeObject PyListIter_Type = {
typedef
struct
{
typedef
struct
{
PyObject_HEAD
PyObject_HEAD
long
it_index
;
long
it_index
;
PyListObject
*
it_seq
;
PyListObject
*
it_seq
;
/* Set to NULL when iterator is exhausted */
}
listreviterobject
;
}
listreviterobject
;
PyTypeObject
PyListRevIter_Type
;
PyTypeObject
PyListRevIter_Type
;
...
@@ -2819,6 +2819,9 @@ listreviter_next(listreviterobject *it)
...
@@ -2819,6 +2819,9 @@ listreviter_next(listreviterobject *it)
item
=
PyList_GET_ITEM
(
it
->
it_seq
,
it
->
it_index
);
item
=
PyList_GET_ITEM
(
it
->
it_seq
,
it
->
it_index
);
it
->
it_index
--
;
it
->
it_index
--
;
Py_INCREF
(
item
);
Py_INCREF
(
item
);
}
else
if
(
it
->
it_seq
!=
NULL
)
{
Py_DECREF
(
it
->
it_seq
);
it
->
it_seq
=
NULL
;
}
}
return
item
;
return
item
;
}
}
...
...
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