2017-02-16 13:55 GMT+01:00 M.-A. Lemburg <m...@egenix.com>: > 1. you don't need a preprocessor for this: simply put your > logging code into an "if __debug__:" block:
The problem with -O is that it also disables assertions, whereas you may want to keep them at runtime on production for good reasons. Victor _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/