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
46508927
Kaydet (Commit)
46508927
authored
May 29, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add with statements
üst
b09f1983
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
test_grammar.py
Lib/test/test_grammar.py
+20
-0
No files found.
Lib/test/test_grammar.py
Dosyayı görüntüle @
46508927
...
...
@@ -920,6 +920,26 @@ hello world
self
.
assertEqual
([
x
for
x
,
in
[(
4
,),
(
5
,),
(
6
,)]],
[
4
,
5
,
6
])
self
.
assertEqual
(
list
(
x
for
x
,
in
[(
7
,),
(
8
,),
(
9
,)]),
[
7
,
8
,
9
])
def
test_with_statement
(
self
):
class
manager
(
object
):
def
__enter__
(
self
):
return
(
1
,
2
)
def
__exit__
(
self
,
*
args
):
pass
with
manager
():
pass
with
manager
()
as
x
:
pass
with
manager
()
as
(
x
,
y
):
pass
with
manager
(),
manager
():
pass
with
manager
()
as
x
,
manager
()
as
y
:
pass
with
manager
()
as
x
,
manager
():
pass
def
testIfElseExpr
(
self
):
# Test ifelse expressions in various cases
def
_checkeval
(
msg
,
ret
):
...
...
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