Multi-Line Comment

Skip Montanaro skip at
Mon Aug 11 21:17:38 CEST 2003

    Doug> I've been using Python for quite some time now, and I'm a bit
    Doug> stumped.  Does it really not have a multi-line comment?  I think I
    Doug> must just be missing something simple and stupid.

Nope, no multi-line comment.  The python-mode package which is available for
Emacs and XEmacs supports commenting a block of text.  You can also use
triple-quoted strings:

    This is a multi-
    (sort of)

It gets evaluated but immediately popped from the execution stack.


More information about the Python-list mailing list