[Python-bugs-list] [Bug #127098] Explanation of try/else in Lang Ref is flawed

noreply@sourceforge.net noreply@sourceforge.net
Tue, 02 Jan 2001 08:32:28 -0800


Bug #127098, was updated on 2000-Dec-29 12:33
Here is a current snapshot of the bug.

Project: Python
Category: Documentation
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: tim_one
Assigned to : fdrake
Summary: Explanation of try/else in Lang Ref is flawed

Details: Suggested replacement:

"""
The optional 'else' clause is executed when the 'try'
clause terminates by any means other than an exception
or executing a 'return', 'continue' or 'break' statement.
Exceptions in the 'else' clause are not handled by the
prereceding 'except' clauses.
"""

See Python-Dev for discussion.


Follow-Ups:

Date: 2001-Jan-02 08:32
By: tim_one

Comment:
Reopened and reassigned to Fred.  Guido agreed to a different wording, and
here's my guess at appropriate LaTex:

"""
The optional \keyword{else} clause is executed if and
when control flows off the end of the \keyword{try}
clause.\foonote{Currenty, control "flows off the
end" except in case of 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.
"""

-------------------------------------------------------

Date: 2000-Dec-31 14:54
By: twouters

Comment:
Fixed in revision 1.21 of Doc/ref/ref7.tex.


-------------------------------------------------------

Date: 2000-Dec-29 12:36
By: tim_one

Comment:
Except I should have spelled "preceding" correctly.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=127098&group_id=5470