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
e0d12eb8
Kaydet (Commit)
e0d12eb8
authored
Agu 16, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
PySTEntry's constructor is static; there's no point in a fancy API name
üst
765812f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
symtable.c
Python/symtable.c
+4
-4
No files found.
Python/symtable.c
Dosyayı görüntüle @
e0d12eb8
...
...
@@ -16,9 +16,9 @@
#define RETURN_VAL_IN_GENERATOR \
"'return' with argument inside generator"
/* XXX(nnorwitz): change name since static? */
static
PySTEntryObject
*
PySTEntry_N
ew
(
struct
symtable
*
st
,
identifier
name
,
_Py_block_ty
block
,
ste_n
ew
(
struct
symtable
*
st
,
identifier
name
,
_Py_block_ty
block
,
void
*
key
,
int
lineno
)
{
PySTEntryObject
*
ste
=
NULL
;
...
...
@@ -722,7 +722,7 @@ symtable_warn(struct symtable *st, char *msg, int lineno)
return
1
;
}
/* symtable_enter_block() gets a reference via
PySTEntry_New()
.
/* symtable_enter_block() gets a reference via
ste_new
.
This reference is released when the block is exited, via the DECREF
in symtable_exit_block().
*/
...
...
@@ -759,7 +759,7 @@ symtable_enter_block(struct symtable *st, identifier name, _Py_block_ty block,
}
Py_DECREF
(
st
->
st_cur
);
}
st
->
st_cur
=
PySTEntry_N
ew
(
st
,
name
,
block
,
ast
,
lineno
);
st
->
st_cur
=
ste_n
ew
(
st
,
name
,
block
,
ast
,
lineno
);
if
(
st
->
st_cur
==
NULL
)
return
0
;
if
(
name
==
GET_IDENTIFIER
(
top
))
...
...
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