[Tutor] multiline comment in Python

Karl Pflästerer sigurd at 12move.de
Fri Sep 5 00:22:39 EDT 2003


An unnamed person wrote:

> hello all, I am wondering if there is anything other than triple quotes
> for multiline commenting blocks of code.  I am rather disappointed with
> triple quote commenting because Python sometimes gives me a syntax error
> which means I have to prepend a # in front of each line which can get

Can you give a n example where something like that happens?  It's either
a bug in Python (very unlikely) or an error in your code.

> tedious.  I am running Python 2.2.3 and was really hoping for the /** */
> multiline commenting in C and Java.  Thanks in advance.

Where's the difference if you type /* ... */ or """ ... """?


   Karl
-- 
Please do *not* send copies of replies to me.
I read the list




More information about the Tutor mailing list