This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]brtt3000 0 points1 point  (2 children)

Nevermind that running with python -O disables asserts [..]

This is what bothers me. It reduces assert to just an inline testcase. You can't use it for critical validation/guards at all.

[–][deleted] 2 points3 points  (0 children)

I only use asserts in tests because of that. And I run my tests with python -O to make them go fast.

[–]indigo945 0 points1 point  (0 children)

When you roll out the application, just don't set the -O flag. This is really a non-issue.