idiom for debug code?

Dan Perl danperl at rogers.com
Thu Sep 30 19:32:15 CEST 2004


Is there a mechanism or an idiom for adding code for debugging so that it 
can easily be removed in the production code?  I am thinking of something 
similar to the C/C++ preprocessor statements with which you can compile an 
application with the debug code or without it (the default).

Dan 





More information about the Python-list mailing list