Re: how to comment lot of lines in python
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: how to comment lot of lines in python

From: Dave Mandelin <mandelin@cs.berkeley.edu>
Date: Fri Mar 31 2006 - 19:52:40 CEST

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
Received on Sun Apr 30 21:48:27 2006