multiline comments

Edward Elliott nobody at 127.0.0.1
Wed Apr 19 14:16:17 EDT 2006


Jorge Godoy wrote:
> You can use either """ or '''.  I don't keep changing them in my code, so I
> can always use the other type (usually I use " so for commenting things out
> I'd use ') to do that. 

It's close, only problem is it doesn't nest.  It'll have to be good enough 
for now.

>>Forcing programmers to write clean code with syntax is like teaching a pig
>>to sing: it wastes your time and annoys the pig.  Good coding is a state
>>of mind, not a parser option.
> 
> If the latter can help, why not?

Because in this case it limits the expressive power of the language. 
Multiline comments enable clearer communication of intent (see earlier post 
for some reasons why).



More information about the Python-list mailing list