test.py
#ifdef MACRO
print "debug..."
#endif
I want to write code like this and hide it in some cases.
http://stackoverflow.com/questions/12524570/how-do-you-implement-ifdef-in-python Looking at it, it seems that python doesn't have a preprocessor.
Some have suggested using __debug__
instead, while others are against it.
Recommended Posts