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
da8c3fd9
Kaydet (Commit)
da8c3fd9
authored
Agu 09, 1992
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed descr of try/finally
üst
4732ccf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
tut.tex
Doc/tut.tex
+11
-11
tut.tex
Doc/tut/tut.tex
+11
-11
No files found.
Doc/tut.tex
Dosyayı görüntüle @
da8c3fd9
...
...
@@ -1925,7 +1925,7 @@ variable.
For example:
\bcode
\begin{verbatim}
>>> my
_
exc = '
nobody likes me!
'
>>> my
_
exc = '
Nobody likes me
'
>>> try:
... raise my
_
exc, 2*2
... except my
_
exc, val:
...
...
@@ -1933,7 +1933,7 @@ For example:
...
My exception occured, value: 4
>>> raise my
_
exc, 1
Unhandled exception: nobody likes me!
: 1
Nobody likes me
: 1
Stack backtrace (innermost last):
File "<stdin>", line 7
>>>
...
...
@@ -1961,15 +1961,15 @@ Stack backtrace (innermost last):
>>>
\end{verbatim}
\ecode
%
The
{
\em
finally
\
clause
}
must follow the except clauses(s), if any.
It is executed whether or not an exception occurred,
or whether or not an exception is handled.
If the exception is handled, the finally clause is executed after the
handler (and even if another exception occurred in the handler).
It is also executed when the
{
\tt
try
}
statement is left via a
{
\tt
break
}
or
{
\tt
return
}
statement
.
A
{
\tt
finally
}
clause is executed whether or not an exception has
occurred in the
{
\tt
try
}
clause. When an exception has occurred, it
is re-raised after the
{
\tt
finally
}
clauses is executed. The
{
\tt
finally
}
clause is also executed ``on the way out'' when the
{
\tt
try
}
statement is left via a
{
\tt
break
}
or
{
\tt
return
}
statement.
A
{
\tt
try
}
statement must either have one or more
{
\tt
except
}
clauses or one
{
\tt
finally
}
clause, but not both
.
\chapter
{
Classes
}
...
...
Doc/tut/tut.tex
Dosyayı görüntüle @
da8c3fd9
...
...
@@ -1925,7 +1925,7 @@ variable.
For example:
\bcode
\begin{verbatim}
>>> my
_
exc = '
nobody likes me!
'
>>> my
_
exc = '
Nobody likes me
'
>>> try:
... raise my
_
exc, 2*2
... except my
_
exc, val:
...
...
@@ -1933,7 +1933,7 @@ For example:
...
My exception occured, value: 4
>>> raise my
_
exc, 1
Unhandled exception: nobody likes me!
: 1
Nobody likes me
: 1
Stack backtrace (innermost last):
File "<stdin>", line 7
>>>
...
...
@@ -1961,15 +1961,15 @@ Stack backtrace (innermost last):
>>>
\end{verbatim}
\ecode
%
The
{
\em
finally
\
clause
}
must follow the except clauses(s), if any.
It is executed whether or not an exception occurred,
or whether or not an exception is handled.
If the exception is handled, the finally clause is executed after the
handler (and even if another exception occurred in the handler).
It is also executed when the
{
\tt
try
}
statement is left via a
{
\tt
break
}
or
{
\tt
return
}
statement
.
A
{
\tt
finally
}
clause is executed whether or not an exception has
occurred in the
{
\tt
try
}
clause. When an exception has occurred, it
is re-raised after the
{
\tt
finally
}
clauses is executed. The
{
\tt
finally
}
clause is also executed ``on the way out'' when the
{
\tt
try
}
statement is left via a
{
\tt
break
}
or
{
\tt
return
}
statement.
A
{
\tt
try
}
statement must either have one or more
{
\tt
except
}
clauses or one
{
\tt
finally
}
clause, but not both
.
\chapter
{
Classes
}
...
...
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