Josh Rosenberg added the comment:

No. The first form, raise Class, is in fact a shorthand for raise Class(). 
That's the point. You only actually raise instances, but if you pass it a class 
directly, it instantiates it by calling its constructor with no arguments. The 
second form is not described explicitly, but the example shows it in use. An 
instance of an Exception class is explicitly created.

----------
nosy: +josh.rosenberg

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21864>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to