Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1ae68565
Commit
1ae68565
authored
Jul 29, 2007
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try-except-finally is new in 2.5.
parent
304f9ff7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Doc/tut/tut.tex
Doc/tut/tut.tex
+3
-1
No files found.
Doc/tut/tut.tex
View file @
1ae68565
...
...
@@ -3765,7 +3765,9 @@ been handled by an \keyword{except} clause (or it has occurred in a
\keyword
{
finally
}
clause has been executed. The
\keyword
{
finally
}
clause
is also executed ``on the way out'' when any other clause of the
\keyword
{
try
}
statement is left via a
\keyword
{
break
}
,
\keyword
{
continue
}
or
\keyword
{
return
}
statement. A more complicated example:
or
\keyword
{
return
}
statement. A more complicated example (having
\keyword
{
except
}
and
\keyword
{
finally
}
clauses in the same
\keyword
{
try
}
statement works as of Python 2.5):
\begin{verbatim}
>>> def divide(x, y):
...
...
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