how to comment out a block of code

Jeff Shannon jeff at ccvcorp.com
Thu Jan 27 19:59:22 CET 2005


Xah Lee wrote:

> is there a syntax to comment out a block of code? i.e. like html's <!--
> comment -->
> or perhaps put a marker so that all lines from there on are ignored?
> thanks.

Of course -- this feature is so important that all computer 
manufacturers worldwide have made a special button on the computer 
case just for this!

Normally it's a large round button, with perhaps a green backlight. 
Press the button and hold it in for about 3 seconds, and the rest of 
your code/writing will be ignored just as it should be.

Jeff Shannon
Technician/Programmer
Credit International




More information about the Python-list mailing list