Commenting out multiple lines ?
Remco Gerlich
scarblac at pino.selwerd.nl
Tue May 15 18:07:01 EDT 2001
Tom <tom at peresys.co.za> wrote in comp.lang.python:
> I miss C style comments for multiple lines like /* */
>
> How can that be done without doing
>
> #line 1
> #line 2
> #line 3
> #line 4
>
> in Python ?
"""
Just put a multine-line string in there. You can make them with triple quotes.
It's not officially a comment, but it doesn't do anything,
so it's more or less the same.
"""
--
Remco Gerlich
More information about the Python-list
mailing list