This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 6.9 First sentence is confusing
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ngrilly, rhettinger
Priority: normal Keywords:

Created on 2005-04-26 17:40 by ngrilly, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25137 - (view) Author: Nicolas Grilly (ngrilly) Date: 2005-04-26 17:40
The first sentence of section 6.9 "The raise statement"
in Python Reference Manual is confusing:

"If no expressions are present, raise re-raises the
last ***expression*** that was active in the current
scope."

I guess the author means "the last ***exception*** that
was active in the current scope". This corresponds to
the behavior of Python and also to following sentence
in the manual:

"If no ***exception*** is active in the current scope,
an exception is raised indicating this error."

Therefore, should we replace "expression" by
"exception" in the first sentence?
msg25138 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-04-28 07:14
Logged In: YES 
user_id=80475

Fixed.  Thanks for the report.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 41905
2005-04-26 17:40:03ngrillycreate