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
31ba8480
Kaydet (Commit)
31ba8480
authored
Eyl 30, 2007
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix error introduced by r58288; if a tuple is length 0 return its repr and
don't worry about any self-referring tuples.
üst
0b14f243
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tupleobject.c
Objects/tupleobject.c
+4
-4
No files found.
Objects/tupleobject.c
Dosyayı görüntüle @
31ba8480
...
@@ -216,6 +216,10 @@ tuplerepr(PyTupleObject *v)
...
@@ -216,6 +216,10 @@ tuplerepr(PyTupleObject *v)
PyObject
*
s
,
*
temp
;
PyObject
*
s
,
*
temp
;
PyObject
*
pieces
,
*
result
=
NULL
;
PyObject
*
pieces
,
*
result
=
NULL
;
n
=
Py_Size
(
v
);
if
(
n
==
0
)
return
PyString_FromString
(
"()"
);
/* While not mutable, it is still possible to end up with a cycle in a
/* While not mutable, it is still possible to end up with a cycle in a
tuple through an object that stores itself within a tuple (and thus
tuple through an object that stores itself within a tuple (and thus
infinitely asks for the repr of itself). This should only be
infinitely asks for the repr of itself). This should only be
...
@@ -225,10 +229,6 @@ tuplerepr(PyTupleObject *v)
...
@@ -225,10 +229,6 @@ tuplerepr(PyTupleObject *v)
return
i
>
0
?
PyString_FromString
(
"(...)"
)
:
NULL
;
return
i
>
0
?
PyString_FromString
(
"(...)"
)
:
NULL
;
}
}
n
=
Py_Size
(
v
);
if
(
n
==
0
)
return
PyString_FromString
(
"()"
);
pieces
=
PyTuple_New
(
n
);
pieces
=
PyTuple_New
(
n
);
if
(
pieces
==
NULL
)
if
(
pieces
==
NULL
)
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