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 brett.cannon
Recipients brett.cannon, martin.panter, mbussonn, terry.reedy
Date 2017-02-27.18:17:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488219436.19.0.227862336061.issue26389@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think supporting both approaches is worth it; we should just choose one of them. As for which one, I'm torn. The single argument one is the most pragmatic, but changing types like has always bugged me. But as Martin points out, the `raise` syntax supports the class or an instance so there's precedent in regards to exceptions themselves. The parameter name is poorly named if we take it in for the first argument which is unfortunate.

Basically I can't decide. :)
History
Date User Action Args
2017-02-27 18:17:16brett.cannonsetrecipients: + brett.cannon, terry.reedy, martin.panter, mbussonn
2017-02-27 18:17:16brett.cannonsetmessageid: <1488219436.19.0.227862336061.issue26389@psf.upfronthosting.co.za>
2017-02-27 18:17:16brett.cannonlinkissue26389 messages
2017-02-27 18:17:15brett.cannoncreate