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
2031d131
Kaydet (Commit)
2031d131
authored
Eyl 17, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bypass long_repr and _PyLong_Format for str(n), repr(n)
üst
d3aa6467
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
longobject.c
Objects/longobject.c
+2
-8
No files found.
Objects/longobject.c
Dosyayı görüntüle @
2031d131
...
@@ -2515,12 +2515,6 @@ long_dealloc(PyObject *v)
...
@@ -2515,12 +2515,6 @@ long_dealloc(PyObject *v)
Py_TYPE
(
v
)
->
tp_free
(
v
);
Py_TYPE
(
v
)
->
tp_free
(
v
);
}
}
static
PyObject
*
long_repr
(
PyObject
*
v
)
{
return
_PyLong_Format
(
v
,
10
);
}
static
int
static
int
long_compare
(
PyLongObject
*
a
,
PyLongObject
*
b
)
long_compare
(
PyLongObject
*
a
,
PyLongObject
*
b
)
{
{
...
@@ -4289,13 +4283,13 @@ PyTypeObject PyLong_Type = {
...
@@ -4289,13 +4283,13 @@ PyTypeObject PyLong_Type = {
0
,
/* tp_getattr */
0
,
/* tp_getattr */
0
,
/* tp_setattr */
0
,
/* tp_setattr */
0
,
/* tp_reserved */
0
,
/* tp_reserved */
long_
repr
,
/* tp_repr */
long_
to_decimal_string
,
/* tp_repr */
&
long_as_number
,
/* tp_as_number */
&
long_as_number
,
/* tp_as_number */
0
,
/* tp_as_sequence */
0
,
/* tp_as_sequence */
0
,
/* tp_as_mapping */
0
,
/* tp_as_mapping */
(
hashfunc
)
long_hash
,
/* tp_hash */
(
hashfunc
)
long_hash
,
/* tp_hash */
0
,
/* tp_call */
0
,
/* tp_call */
long_
repr
,
/* tp_str */
long_
to_decimal_string
,
/* tp_str */
PyObject_GenericGetAttr
,
/* tp_getattro */
PyObject_GenericGetAttr
,
/* tp_getattro */
0
,
/* tp_setattro */
0
,
/* tp_setattro */
0
,
/* tp_as_buffer */
0
,
/* tp_as_buffer */
...
...
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