You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
Python removes assert calls when compiling optimised code, meaning that they don't actually do anything in production code. This will result in the code following different code paths in testing and production.
The text was updated successfully, but these errors were encountered:
This makes sense. I've been told not to use assert outside of test, but never found a good explanation as to why. Does this mean none of the assert calls in the production is actually doing anything?
Bug Description
Python removes
assert
calls when compiling optimised code, meaning that they don't actually do anything in production code. This will result in the code following different code paths in testing and production.The text was updated successfully, but these errors were encountered: