[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

RE: What's the word on using """ to comment-out?

macbeth

2/25/2010 1:07:00 PM



> From: Lie Ryan

>
> On 02/25/10 05:18, kj wrote:
> > I think I remember, early in my learning of Python, coming across
> > the commandment "THOU SHALT NOT USE TRIPLE-QUOTES TO COMMENT-OUT
> > LINES OF CODE", or something to that effect. But now I can't find
> > it!
>
> I've never heard of it, though I can think of a few reasons why TQC
> might be a bad thing. Especially if a user pydoc-ed your module and see
> a bunch of meaningless code.

That is why I was told not to use """ to comment code.

Use '#' for code and """ for docs

But, I do not remember reading it any where.

I found this --->
http://mail.python.org/pipermail/tutor/2004-February/0...