In C/C++, a programmer can easily enable/disable assert statements with macros in the source code. Can this be done in a similar way in python?
I know assertions can be disabled using the -O flag (capital O) in python. However, I prefer to do this in the source code.
I am using python 3.7.3 and Windows 10.