<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 2, 2016 at 5:17 PM, Random832 <span dir="ltr"><<a href="mailto:random832@fastmail.com" target="_blank">random832@fastmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, May 2, 2016, at 11:14, Guido van Rossum wrote:<br>
> On Mon, May 2, 2016 at 8:01 AM, Ryan Gonzalez <<a href="mailto:rymg19@gmail.com">rymg19@gmail.com</a>> wrote:<br>
><br>
> > Other than the fact that this would completely fail when run with -O...<br>
> ><br>
> But maybe that's fine, or intended.<br>
><br>
> I can see a fair number of uses for this, including subclasses of<br>
> AssertionError.<br>
<br>
</span>I think this would be an attractive nuisance, and if it's implemented at<br>
all it should forbid types that are *not* subclasses of AssertionError<br>
in order to mitigate that.</blockquote><div><br></div><div>Why such a constraint? I think most of the times the desired exception would be either ValueError or TypeError, both of which do not inherit from AssertionError.</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Giampaolo - <a href="http://grodola.blogspot.com" target="_blank">http://grodola.blogspot.com</a></div><div><br></div></div></div>
</div></div>