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
Now, how can you actually disable your assertions? Well, you have two options:
Run Python with the -O or -OO options.
Set the PYTHONOPTIMIZE environment variable to an appropriate value.
The -O option internally sets debug to False. This change removes the assert statements and any code that you’ve explicitly introduced under a conditional targeting debug. The -OO option does the same as -O and also discards docstrings.
The text was updated successfully, but these errors were encountered:
Now, how can you actually disable your assertions? Well, you have two options:
The -O option internally sets debug to False. This change removes the assert statements and any code that you’ve explicitly introduced under a conditional targeting debug. The -OO option does the same as -O and also discards docstrings.
The text was updated successfully, but these errors were encountered: