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
d8dbf847
Kaydet (Commit)
d8dbf847
authored
Agu 19, 2002
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a warning comment to the LOAD_GLOBAL inline code.
üst
3a4dfc87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ceval.c
Python/ceval.c
+3
-1
No files found.
Python/ceval.c
Dosyayı görüntüle @
d8dbf847
...
@@ -1710,9 +1710,11 @@ eval_frame(PyFrameObject *f)
...
@@ -1710,9 +1710,11 @@ eval_frame(PyFrameObject *f)
case
LOAD_GLOBAL
:
case
LOAD_GLOBAL
:
w
=
GETITEM
(
names
,
oparg
);
w
=
GETITEM
(
names
,
oparg
);
if
(
PyString_CheckExact
(
w
))
{
if
(
PyString_CheckExact
(
w
))
{
/* Inline the PyDict_GetItem() calls.
WARNING: this is an extreme speed hack.
Do not try this at home. */
long
hash
=
((
PyStringObject
*
)
w
)
->
ob_shash
;
long
hash
=
((
PyStringObject
*
)
w
)
->
ob_shash
;
if
(
hash
!=
-
1
)
{
if
(
hash
!=
-
1
)
{
/* Inline the PyDict_GetItem() calls */
PyDictObject
*
d
;
PyDictObject
*
d
;
d
=
(
PyDictObject
*
)(
f
->
f_globals
);
d
=
(
PyDictObject
*
)(
f
->
f_globals
);
x
=
d
->
ma_lookup
(
d
,
w
,
hash
)
->
me_value
;
x
=
d
->
ma_lookup
(
d
,
w
,
hash
)
->
me_value
;
...
...
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