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
07e9e380
Kaydet (Commit)
07e9e380
authored
Kas 07, 2013
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
frameobject.c: Use an identifer instead of creating explicitly an interned
string for "__builtins__" literal string
üst
e8453bc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
frameobject.c
Objects/frameobject.c
+5
-7
No files found.
Objects/frameobject.c
Dosyayı görüntüle @
07e9e380
...
...
@@ -601,13 +601,13 @@ PyTypeObject PyFrame_Type = {
0
,
/* tp_dict */
};
static
PyObject
*
builtin_object
;
_Py_IDENTIFIER
(
__builtins__
)
;
int
_PyFrame_Init
()
{
builtin_object
=
PyUnicode_InternFromString
(
"__builtins__"
);
if
(
builtin_object
==
NULL
)
return
0
;
/* Before, PyId___builtins__ was a string created explicitly in
this function. Now there is nothing to initialize anymore, but
the function is kept for backward compatibility. */
return
1
;
}
...
...
@@ -628,7 +628,7 @@ PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals,
}
#endif
if
(
back
==
NULL
||
back
->
f_globals
!=
globals
)
{
builtins
=
PyDict_GetItem
(
globals
,
builtin_object
);
builtins
=
_PyDict_GetItemId
(
globals
,
&
PyId___builtins__
);
if
(
builtins
)
{
if
(
PyModule_Check
(
builtins
))
{
builtins
=
PyModule_GetDict
(
builtins
);
...
...
@@ -994,8 +994,6 @@ void
PyFrame_Fini
(
void
)
{
(
void
)
PyFrame_ClearFreeList
();
Py_XDECREF
(
builtin_object
);
builtin_object
=
NULL
;
}
/* Print summary info about the state of the optimized allocator */
...
...
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