[Python-ideas] Specify an alternative exception for "assert"

Guido van Rossum guido at python.org
Mon May 2 11:14:19 EDT 2016


On Mon, May 2, 2016 at 8:01 AM, Ryan Gonzalez <rymg19 at gmail.com> wrote:

> Other than the fact that this would completely fail when run with -O...
>
But maybe that's fine, or intended.

I can see a fair number of uses for this, including subclasses of
AssertionError.

+0.5

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160502/ec707400/attachment-0001.html>


More information about the Python-ideas mailing list