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
b4e7e25f
Kaydet (Commit)
b4e7e25f
authored
Ock 17, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
different init for __builtins__
üst
cd938fc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
frameobject.c
Objects/frameobject.c
+2
-0
ceval.c
Python/ceval.c
+2
-2
No files found.
Objects/frameobject.c
Dosyayı görüntüle @
b4e7e25f
...
@@ -149,6 +149,8 @@ newframeobject(back, code, globals, locals, owner, nvalues, nblocks)
...
@@ -149,6 +149,8 @@ newframeobject(back, code, globals, locals, owner, nvalues, nblocks)
return
NULL
;
return
NULL
;
}
}
builtins
=
dictlookup
(
globals
,
"__builtins__"
);
builtins
=
dictlookup
(
globals
,
"__builtins__"
);
if
(
builtins
!=
NULL
&&
is_moduleobject
(
builtins
))
builtins
=
getmoduledict
(
builtins
);
if
(
builtins
==
NULL
||
!
is_mappingobject
(
builtins
))
{
if
(
builtins
==
NULL
||
!
is_mappingobject
(
builtins
))
{
err_setstr
(
TypeError
,
"bad __builtins__ dictionary"
);
err_setstr
(
TypeError
,
"bad __builtins__ dictionary"
);
return
NULL
;
return
NULL
;
...
...
Python/ceval.c
Dosyayı görüntüle @
b4e7e25f
...
@@ -737,8 +737,8 @@ eval_code(co, globals, locals, owner, arg)
...
@@ -737,8 +737,8 @@ eval_code(co, globals, locals, owner, arg)
!
suppress_print
)
{
!
suppress_print
)
{
flushline
();
flushline
();
x
=
sysget
(
"stdout"
);
x
=
sysget
(
"stdout"
);
softspace
(
x
,
1
);
err
=
writeobject
(
v
,
x
,
0
);
err
=
writeobject
(
v
,
x
,
0
);
softspace
(
x
,
1
);
flushline
();
flushline
();
}
}
DECREF
(
v
);
DECREF
(
v
);
...
@@ -1692,7 +1692,7 @@ object *
...
@@ -1692,7 +1692,7 @@ object *
getbuiltins
()
getbuiltins
()
{
{
if
(
current_frame
==
NULL
)
if
(
current_frame
==
NULL
)
return
getbuiltin
dict
();
return
getbuiltin
mod
();
else
else
return
current_frame
->
f_builtins
;
return
current_frame
->
f_builtins
;
}
}
...
...
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