[Python-bugs-list] [ python-Bugs-532467 ] 6.9 The raise statement is confusing

noreply@sourceforge.net noreply@sourceforge.net
Wed, 20 Mar 2002 05:37:13 -0800


Bugs item #532467, was opened at 2002-03-20 07:37
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=532467&group_id=5470

Category: Documentation
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Patrick K. O'Brien (pobrien)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: 6.9 The raise statement is confusing

Initial Comment:
The description supplied for "6.9 The raise statement" 
is confusing. In particular, it starts by explaining 
the intent of each "expresssion" and midway switches 
to "object" instead of expression. In particular, I 
can't make heads or tails out of the following passage:

"If the first object is a string, it then raises the 
exception identified by the first object, with the 
second one (or None) as its parameter. If the first 
object is a class or instance, it raises the exception 
identified by the class of the instance determined in 
the previous step, with the instance as its parameter."

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=532467&group_id=5470