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 ncoghlan
Recipients Arfrever, benjamin.peterson, ncoghlan, pitrou
Date 2012-02-26.21:18:47
SpamBayes Score 0.00076100376
Marked as misclassified No
Message-id <1330291128.47.0.506655003796.issue14133@psf.upfronthosting.co.za>
In-reply-to
Content
Because you're breaking the semantics of the "raise X from Y" syntax.

That syntax is *just* syntactic sugar for "_exc = X; _exc.__cause__ = Y; raise _exc".

Under PEP 409, that remains true.

Your patch breaks it.

If you want to change the meaning for "raise X from Y", write a new PEP.
History
Date User Action Args
2012-02-26 21:18:48ncoghlansetrecipients: + ncoghlan, pitrou, benjamin.peterson, Arfrever
2012-02-26 21:18:48ncoghlansetmessageid: <1330291128.47.0.506655003796.issue14133@psf.upfronthosting.co.za>
2012-02-26 21:18:47ncoghlanlinkissue14133 messages
2012-02-26 21:18:47ncoghlancreate