I found out to my horror that python -O
strips out assert statements. I use asserts anywhere and everywhere, and I think of asserts (like exceptions in general) as a form of flow control.
Python people: are python -O
and .pyo
files considered safe? Is it unsafe to rely on asserts?