[docs] [issue21864] Error in documentation of point 9.8 'Exceptions are classes too'
report at bugs.python.org
Wed Jun 25 02:25:29 CEST 2014
Peibolvig added the comment:
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' 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.
Python tracker <report at bugs.python.org>
More information about the docs