4 ms·
Isn't that what assertions are for?
by Kristine1975 11y ago
Isn't that what assertions are for?
- Karunamon 11y agoAssertions can be disabled at runtime. If your goal is to call out the fact that something has gone fundamentally wrong with your program's state, an exception is the way to go.
- amatix 11y agoin Python, running with `-O`, from .pyo files, or equivalent settings in your webserver will all disable assertions. surprise!