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, josh.r
Date 2014-06-25.00:25:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403655929.1.0.25131704722.issue21864@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, I see. Thanks for the clarification.

May I suggest to include that clarification into the documentation somehow? I think it would be easier to understand the point of the raises doing that.

Maybe this suggestion could fit:
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()
"'raise' will always use an instance. If a class is passed instead of an instance, it will instantiate it first using the constructor with no arguments."


Again, thanks for the clarification.
History
Date User Action Args
2014-06-25 00:25:29Peibolvigsetrecipients: + Peibolvig, docs@python, josh.r
2014-06-25 00:25:29Peibolvigsetmessageid: <1403655929.1.0.25131704722.issue21864@psf.upfronthosting.co.za>
2014-06-25 00:25:29Peibolviglinkissue21864 messages
2014-06-25 00:25:28Peibolvigcreate