comment out more than 1 line at once?

Aaron Bingham bingham at cenix-bioscience.com
Tue Nov 30 04:36:28 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
> */

No.  Why do you want this?  Any good programmer's editor will have a 
comment/uncomment feature to make it easy to comment out whole blocks of 
code at a time using the hash character ('#').

Aaron




More information about the Python-list mailing list