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
d88ddfa9
Kaydet (Commit)
d88ddfa9
authored
Tem 15, 2008
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make these files to compile again under Windows.
üst
0d755b4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
pythonrun.c
Python/pythonrun.c
+3
-2
sysmodule.c
Python/sysmodule.c
+2
-1
No files found.
Python/pythonrun.c
Dosyayı görüntüle @
d88ddfa9
...
@@ -1340,9 +1340,10 @@ print_exception(PyObject *f, PyObject *value)
...
@@ -1340,9 +1340,10 @@ print_exception(PyObject *f, PyObject *value)
/* Don't do anything else */
/* Don't do anything else */
}
}
else
{
else
{
assert
(
PyExceptionClass_Check
(
type
));
PyObject
*
moduleName
;
PyObject
*
moduleName
;
char
*
className
=
PyExceptionClass_Name
(
type
);
char
*
className
;
assert
(
PyExceptionClass_Check
(
type
));
className
=
PyExceptionClass_Name
(
type
);
if
(
className
!=
NULL
)
{
if
(
className
!=
NULL
)
{
char
*
dot
=
strrchr
(
className
,
'.'
);
char
*
dot
=
strrchr
(
className
,
'.'
);
if
(
dot
!=
NULL
)
if
(
dot
!=
NULL
)
...
...
Python/sysmodule.c
Dosyayı görüntüle @
d88ddfa9
...
@@ -616,6 +616,7 @@ sys_getsizeof(PyObject *self, PyObject *args, PyObject *kwds)
...
@@ -616,6 +616,7 @@ sys_getsizeof(PyObject *self, PyObject *args, PyObject *kwds)
static
PyObject
*
str__sizeof__
,
*
gc_head_size
=
NULL
;
static
PyObject
*
str__sizeof__
,
*
gc_head_size
=
NULL
;
static
char
*
kwlist
[]
=
{
"object"
,
"default"
,
0
};
static
char
*
kwlist
[]
=
{
"object"
,
"default"
,
0
};
PyObject
*
o
,
*
dflt
=
NULL
;
PyObject
*
o
,
*
dflt
=
NULL
;
PyObject
*
method
;
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwds
,
"O|O:getsizeof"
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwds
,
"O|O:getsizeof"
,
kwlist
,
&
o
,
&
dflt
))
kwlist
,
&
o
,
&
dflt
))
...
@@ -639,7 +640,7 @@ sys_getsizeof(PyObject *self, PyObject *args, PyObject *kwds)
...
@@ -639,7 +640,7 @@ sys_getsizeof(PyObject *self, PyObject *args, PyObject *kwds)
if
(
PyType_Ready
(
Py_TYPE
(
o
))
<
0
)
if
(
PyType_Ready
(
Py_TYPE
(
o
))
<
0
)
return
NULL
;
return
NULL
;
PyObject
*
method
=
_PyType_Lookup
(
Py_TYPE
(
o
),
str__sizeof__
);
method
=
_PyType_Lookup
(
Py_TYPE
(
o
),
str__sizeof__
);
if
(
method
==
NULL
)
if
(
method
==
NULL
)
PyErr_Format
(
PyExc_TypeError
,
PyErr_Format
(
PyExc_TypeError
,
"Type %.100s doesn't define __sizeof__"
,
"Type %.100s doesn't define __sizeof__"
,
...
...
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