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...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
RE: What's the word on using """ to comment-out?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password