[issue31338] Use abort() for code we never expect to hit

Serhiy Storchaka report at bugs.python.org
Tue Sep 5 06:43:53 EDT 2017


Serhiy Storchaka added the comment:

The fact that assert() is compiled out in release build looks as an advantage to me. This allows the compiler to generate smaller code. I'm in favor of using assert(!"message"), but this form is rarely used in CPython sources.

I think it would be nice to ask on Python-Dev first. Maybe there are other concerns.

----------
nosy: +haypo, rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31338>
_______________________________________


More information about the Python-bugs-list mailing list