how to comment lot of lines in python

Dave Mandelin mandelin at cs.berkeley.edu
Fri Mar 31 12:52:40 EST 2006


I often use

if 0:
    bunch of lines of code

That way, it's very easy to reenable the code, or to add an else, etc.
I can even put things like 'if 0 and USE_FOO_FEATURE' to document what
is being commented out. It's much more flexible than commenting out.

--
Want to play tabletop RPGs over the internet?
    Check out Koboldsoft RPZen:    http://www.koboldsoft.com




More information about the Python-list mailing list