Get cpython to optimize out constant conditions
I’m writing code in Python that needs to run as efficiently as possible, but I sometimes have the need to dig deep into debugging statements. Instead of commenting these in- or out (or using an external preprocessor for code like it was suggested here Python equivalent for #ifdef DEBUG or here How do you implement “#ifdef” in python?) I would like to define a variable at the start of my module