Expansion of the __debug__ and pass concepts

Alex not_such_a_brain_after_all at mit.edu
Wed Nov 1 01:12:24 CET 2000


You're going to have to rototill your code to do things this way, but
you may be able to automate most of the job, and it doesn't require
changes to the interpreter: 

If you compile with -O, I believe __debug__ gets automatically set to 0,
and blocks like:

if __debug__:
    DBG(DBG.DM_DEFAULT, "The value for x is : %d", x)

get optimized away during compilation.

HTH
Alex.

-- 
Speak softly but carry a big carrot.




More information about the Python-list mailing list