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
aa158be6
Kaydet (Commit)
aa158be6
authored
Mar 04, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove tp_print.
üst
bc2e10e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
34 deletions
+1
-34
arraymodule.c
Modules/arraymodule.c
+1
-34
No files found.
Modules/arraymodule.c
Dosyayı görüntüle @
aa158be6
...
@@ -1427,39 +1427,6 @@ PyMethodDef array_methods[] = {
...
@@ -1427,39 +1427,6 @@ PyMethodDef array_methods[] = {
{
NULL
,
NULL
}
/* sentinel */
{
NULL
,
NULL
}
/* sentinel */
};
};
static
int
array_print
(
arrayobject
*
a
,
FILE
*
fp
,
int
flags
)
{
int
ok
=
0
;
int
i
,
len
;
PyObject
*
v
;
len
=
a
->
ob_size
;
if
(
len
==
0
)
{
fprintf
(
fp
,
"array('%c')"
,
a
->
ob_descr
->
typecode
);
return
ok
;
}
if
(
a
->
ob_descr
->
typecode
==
'c'
)
{
PyObject
*
t_empty
=
PyTuple_New
(
0
);
fprintf
(
fp
,
"array('c', "
);
v
=
array_tostring
(
a
,
t_empty
);
Py_DECREF
(
t_empty
);
ok
=
PyObject_Print
(
v
,
fp
,
0
);
Py_XDECREF
(
v
);
fprintf
(
fp
,
")"
);
return
ok
;
}
fprintf
(
fp
,
"array('%c', ["
,
a
->
ob_descr
->
typecode
);
for
(
i
=
0
;
i
<
len
&&
ok
==
0
;
i
++
)
{
if
(
i
>
0
)
fprintf
(
fp
,
", "
);
v
=
(
a
->
ob_descr
->
getitem
)(
a
,
i
);
ok
=
PyObject_Print
(
v
,
fp
,
0
);
Py_XDECREF
(
v
);
}
fprintf
(
fp
,
"])"
);
return
ok
;
}
static
PyObject
*
static
PyObject
*
array_repr
(
arrayobject
*
a
)
array_repr
(
arrayobject
*
a
)
{
{
...
@@ -1719,7 +1686,7 @@ statichere PyTypeObject Arraytype = {
...
@@ -1719,7 +1686,7 @@ statichere PyTypeObject Arraytype = {
sizeof
(
arrayobject
),
sizeof
(
arrayobject
),
0
,
0
,
(
destructor
)
array_dealloc
,
/* tp_dealloc */
(
destructor
)
array_dealloc
,
/* tp_dealloc */
(
printfunc
)
array_print
,
/* tp_print */
0
,
/* tp_print */
0
,
/* tp_getattr */
0
,
/* tp_getattr */
0
,
/* tp_setattr */
0
,
/* tp_setattr */
0
,
/* tp_compare */
0
,
/* tp_compare */
...
...
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