How would you do the equivalent of preprocessor directives in Python? - by intrepion Is there a way to do the following preprocessor directives in Python? #if DEBUG < do some code > #else < do some other code > #endif Read the article