comment out more than 1 line at once?

Marc Boeren m.boeren at guidance.nl
Tue Nov 30 04:39:48 EST 2004


> Riko Wichmann wrote:
> 
> > Dear all,
> >
> > is there a way in Python to comment out blocks of code 
> without putting 
> > a # in front of each line? Somethings like C's
> >
> > /*
> >     block of code here is commented out
> > */

Well, you could fake it by doing

    """
    block of code here is commented out
    """

which will work most of the time...

Cheerio, Marc.



More information about the Python-list mailing list