2 ms·
> For one, asserts are removed when you run Python with "-O", so, uh, good luck running your test suite in that configuration. That's almost entirely all pyth
by Twirrim 10y ago
> For one, asserts are removed when you run Python with "-O", so, uh, good luck running your test suite in that configuration.
That's almost entirely all python -O actually does. The only other thing it does is set __debug__ to 0. There's essentially no real value in running code with the -O flag.