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
2cba0f64
Kaydet (Commit)
2cba0f64
authored
Ock 02, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improve description of else clause of the try/except/else statement.
This closes (again!) bug #127098.
üst
b19f1e37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
ref7.tex
Doc/ref/ref7.tex
+11
-6
No files found.
Doc/ref/ref7.tex
Dosyayı görüntüle @
2cba0f64
...
...
@@ -181,7 +181,7 @@ try_exc_stmt: "try" ":" suite
("except" [expression ["," target]] ":" suite)+
["else" ":" suite]
try
_
fin
_
stmt: "try" ":" suite
"finally" ":" suite
"finally" ":" suite
\end{verbatim}
There are two forms of
\keyword
{
try
}
statement:
...
...
@@ -242,12 +242,17 @@ that handled an exception.
\withsubitem
{
(in module sys)
}{
\ttindex
{
exc
_
type
}
\ttindex
{
exc
_
value
}
\ttindex
{
exc
_
traceback
}}
The optional
\keyword
{
else
}
clause is executed when the
\keyword
{
try
}
clause
terminates by any means other than an exception or executing a
\keyword
{
return
}
,
\keyword
{
continue
}
or
\keyword
{
break
}
statement.
Exceptions in the
\keyword
{
else
}
clause are not handled by the preceding
\keyword
{
except
}
clauses.
The optional
\keyword
{
else
}
clause is executed if and when control
flows off the end of the
\keyword
{
try
}
clause.
\footnote
{
Currently, control ``flows off the end'' except in the case of an
exception or the execution of a
\keyword
{
return
}
,
\keyword
{
continue
}
, or
\keyword
{
break
}
statement.
}
Exceptions in the
\keyword
{
else
}
clause are not handled by the
preceding
\keyword
{
except
}
clauses.
\kwindex
{
else
}
\stindex
{
return
}
\stindex
{
break
}
\stindex
{
continue
}
The
\keyword
{
try
}
...
\keyword
{
finally
}
form specifies a `cleanup' handler. The
\keyword
{
try
}
clause is executed. When no exception occurs, the
...
...
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