What's the word on using """ to comment-out?
macbeth
macbeth at panix.com
Thu Feb 25 08:06:40 EST 2010
> 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/028432.html
More information about the Python-list
mailing list