Comments

Greg Ewing (using news.cis.dfn.de) ckea25d02 at sneakemail.com
Tue Apr 1 20:07:54 EST 2003


Chris wrote:
> I wanted to comment out code in a large if statement that was getting an error.

Another way to disable code is

   if 0:
     ...

This has the advantage that it will work even if the
code to be commented out itself contains any triple
quoted literals.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list