Created by: depau
Assertions are ignored if the interpreter is run with the -O
(optimize).
I converted all assertions outside of tests to normal exceptions.
Please review the type of the exceptions (maybe we could define some new, module-specific ones), I tried to use the most meaningful ones (basically all ValueError
and one RuntimeError
).