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.

Author Peibolvig
Recipients Peibolvig, docs@python
Date 2014-06-24.23:41:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403653260.15.0.739232303856.issue21864@psf.upfronthosting.co.za>
In-reply-to
Content
At point 9.8 of the 3.4.1 version documentation, ( https://docs.python.org/3/tutorial/classes.html#exceptions-are-classes-too ), there is an example of two ways to use the 'raise' statement:
raise Class
raise Instance

The next two lines, state: 
"In the first form, Class must be an instance of type or of a class derived from it. The first form is a shorthand for: raise Class()"

That only says something about the first form twice.
I think that the correct way would be:
"In the first form, Class must be an instance of type or of a class derived from it. The SECOND form is a shorthand for: raise Class()"
History
Date User Action Args
2014-06-24 23:41:00Peibolvigsetrecipients: + Peibolvig, docs@python
2014-06-24 23:41:00Peibolvigsetmessageid: <1403653260.15.0.739232303856.issue21864@psf.upfronthosting.co.za>
2014-06-24 23:41:00Peibolviglinkissue21864 messages
2014-06-24 23:41:00Peibolvigcreate