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

Random832 random832 at fastmail.com
Mon May 2 11:39:58 EDT 2016

On Mon, May 2, 2016, at 11:33, Guido van Rossum wrote:
> You can't make allegations of being an attractive nuisance without
> explaining your reasoning. Why do you think this increases bad behavior?
> What kind of bad behavior are you thinking of?

Using assert for checks that are intended to be permanent rather than
for debug purposes (i.e. the *reason* it would fail when run with -O); I
thought that was obvious.

More information about the Python-ideas mailing list