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
b7a5894c
Kaydet (Commit)
b7a5894c
authored
Tem 15, 2012
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refcounting fixes
üst
ceda83c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
pythonrun.c
Python/pythonrun.c
+7
-3
No files found.
Python/pythonrun.c
Dosyayı görüntüle @
b7a5894c
...
...
@@ -1356,6 +1356,7 @@ static set_main_loader(PyObject *d, const char *filename, const char *loader_nam
PyInterpreterState
*
interp
;
PyThreadState
*
tstate
;
PyObject
*
loader_type
,
*
loader
;
int
result
=
0
;
/* Get current thread state and interpreter pointer */
tstate
=
PyThreadState_GET
();
interp
=
tstate
->
interp
;
...
...
@@ -1364,12 +1365,15 @@ static set_main_loader(PyObject *d, const char *filename, const char *loader_nam
return
-
1
;
}
loader
=
PyObject_CallFunction
(
loader_type
,
"ss"
,
"__main__"
,
filename
);
if
(
loader
==
NULL
||
(
PyDict_SetItemString
(
d
,
"__loader__"
,
loader
)
<
0
)
)
{
Py_DECREF
(
loader_type
);
if
(
loader
==
NULL
)
{
return
-
1
;
}
if
(
PyDict_SetItemString
(
d
,
"__loader__"
,
loader
)
<
0
)
{
result
=
-
1
;
}
Py_DECREF
(
loader
);
return
0
;
return
result
;
}
int
...
...
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