How would you do the equivalent of preprocessor directives in Python?

Posted by intrepion on Stack Overflow See other posts from Stack Overflow or by intrepion
Published on 2009-01-27T01:10:43Z Indexed on 2010/06/07 6:52 UTC
Read the original article Hit count: 287

Is there a way to do the following preprocessor directives in Python?

#if DEBUG

< do some code >

#else

< do some other code >

#endif

© Stack Overflow or respective owner

Related posts about python

Related posts about preprocessor