Block comments? Not working inside a logic block.

emile at fenx.com emile at fenx.com
Mon May 8 22:03:52 CEST 2000


Start your comment block with proper indentation.

For example:

if 1:
    """
this can
be wherever
you want now"""
    print "I am here"

Emile van Sebille
emile at fenx.com

Ben Park <benpark at my-deja.com> wrote in message
news:<8f752l$svm$1 at nnrp1.deja.com>...
> Block commenting does not seem to work inside a logic block. For example
> 
> #===================
> if 1:
> '''
> whatever here
> '''
>     print 'I am here'
> #====================
> 
> 
> results in error:
> 
>     '''
>       ^
> SyntaxError: invalid syntax
> 
> 
> In article <391653B7.2F38A7F2 at san.rr.com>,
>   Courageous <jkraska1 at san.rr.com> wrote:
> >
> > Okay, it's not like I'm not looking in my documentation or anything,
> > but if this is available, it's not obvious. How do you express
> > python block comments?
> >
> > C/
> >
> 
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.
> -- 
> http://www.python.org/mailman/listinfo/python-list
>




More information about the Python-list mailing list