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
a37bbf2e
Kaydet (Commit)
a37bbf2e
authored
Tem 30, 2004
tarafından
Armin Rigo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
What if you call lst.__init__() while it is being sorted? :-)
The invariant checks would break.
üst
c0aaa2db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
listobject.c
Objects/listobject.c
+4
-2
No files found.
Objects/listobject.c
Dosyayı görüntüle @
a37bbf2e
...
@@ -2315,8 +2315,10 @@ list_init(PyListObject *self, PyObject *args, PyObject *kw)
...
@@ -2315,8 +2315,10 @@ list_init(PyListObject *self, PyObject *args, PyObject *kw)
return
-
1
;
return
-
1
;
/* Verify list invariants established by PyType_GenericAlloc() */
/* Verify list invariants established by PyType_GenericAlloc() */
assert
(
0
<=
self
->
ob_size
&&
self
->
ob_size
<=
self
->
allocated
);
assert
(
0
<=
self
->
ob_size
);
assert
(
self
->
ob_item
!=
NULL
||
self
->
allocated
==
0
);
assert
(
self
->
ob_size
<=
self
->
allocated
||
self
->
allocated
==
-
1
);
assert
(
self
->
ob_item
!=
NULL
||
self
->
allocated
==
0
||
self
->
allocated
==
-
1
);
/* Empty previous contents */
/* Empty previous contents */
if
(
self
->
ob_item
!=
NULL
)
{
if
(
self
->
ob_item
!=
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