why no block comments in Python?

Roy Smith roy at panix.com
Sat Mar 11 09:33:47 EST 2006


In article <1142071008.571909.24210 at v46g2000cwv.googlegroups.com>,
 "Jonathan Gardner" <jgardner at jonathangardner.net> wrote:

> Warby wrote:
> > ...and I forgot to mention that the output of grep and diff is far more
> > understandable in the absence of block comments!
> 
> Which is why people do this /anyway/. (Kind of makes block comments
> pointless, doesn't it?
> 
> /* This is a 
>  * really
>  * really
>  * long
>  * block comment */

Habit left over from the C days.  It was the only way of making a block 
comment stand out visually.  C++ has // comments, just like Python has #, 
but old habits die hard.



More information about the Python-list mailing list