Block comments?
Roland Schlenker
rol9999 at attglobal.net
Tue May 9 07:09:35 EDT 2000
Courageous wrote:
> Well, the """ """ works most of the time (a use for strings that I hadn't
> thought of), but of course what I want is to disable arbitrary elements of
> code without reformatting and the like. It seems that there isn't really
> a full block comment notation, given when you CAN'T use strings.
You can also use ''' ''' to comment out a section which contains """ """.
if 1:
'''
""" 'eggs' spam "ham" """
'''
pass
Roland Schlenker
More information about the Python-list
mailing list