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
954aed8c
Kaydet (Commit)
954aed8c
authored
Nis 20, 2002
tarafından
Jeremy Hylton
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add test for eval() w/ free variables.
Related to SF bug #505315
üst
24ea8d3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
test_scope
Lib/test/output/test_scope
+1
-0
test_scope.py
Lib/test/test_scope.py
+10
-0
No files found.
Lib/test/output/test_scope
Dosyayı görüntüle @
954aed8c
...
...
@@ -21,3 +21,4 @@ test_scope
20. interaction with trace function
20. eval and exec with free variables
21. list comprehension with local variables
22. eval with free variables
Lib/test/test_scope.py
Dosyayı görüntüle @
954aed8c
...
...
@@ -512,3 +512,13 @@ try:
print
bad
except
NameError
:
pass
print
"22. eval with free variables"
def
f
(
x
):
def
g
():
x
eval
(
"x + 1"
)
return
g
f
(
4
)()
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