Message154395
| Author |
pitrou |
| Recipients |
Arfrever, benjamin.peterson, ncoghlan, pitrou |
| Date |
2012年02月26日.21:29:47 |
| SpamBayes Score |
0.08545929 |
| Marked as misclassified |
No |
| Message-id |
<1330291568.3345.4.camel@localhost.localdomain> |
| In-reply-to |
<1330291672.35.0.622371096858.issue14133@psf.upfronthosting.co.za> |
| Content |
> The other problem with the "separate attribute" approach is that it
> makes the condition for suppressing the context ugly:
>
> exc.__suppress_context__ or exc.__cause__ is not None
>
> That's hardly cleaner than:
>
> exc.__cause__ is not Ellipsis
I find it cleaner actually, because it states the intent rather than
hiding it behing an unexpected magic value (Ellipsis not being
exception-related). |
|