Comment out a python code block

Posted by gbarry on Stack Overflow See other posts from Stack Overflow or by gbarry
Published on 2009-03-23T22:17:57Z Indexed on 2010/05/01 3:37 UTC
Read the original article Hit count: 268

Filed under:
|

Is there any mechanism to comment out large blocks of Python code? Right now the only ways I can see of commenting out code are to either start every line with a #, or to enclose the code in """ (triple quotes), except that actually makes it show up in various doc tools.

Edit--After reading the answers (and referring to the "duplicate"), I have concluded the correct answer is "No". One person said so, and the rest lectured us about editors. Not a bad thing, but I feel it's important to put the answer at the top.

© Stack Overflow or respective owner

Related posts about python

Related posts about syntax