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

2010-02-26 Thread Michael Rudolf
Am 25.02.2010 17:39, schrieb Grant Edwards: IMO, any sort of commented out code left in a program is a big mistake. If the code is soething that does need to stay for optional use, then it needs to be properly integrated along with logic to control when it's used. OK, then we are perfectly

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

2010-02-26 Thread Michael Rudolf
Am 26.02.2010 12:47, schrieb Michael Rudolf: I'd just hate to see something like if False in production level code. And yeah, I've seen it. And worse. -- http://mail.python.org/mailman/listinfo/python-list

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

2010-02-25 Thread Paul Rudin
kj no.em...@please.post writes: 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! No idea, but it would be nice to have some multiline comment

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

2010-02-25 Thread Tim Chase
Paul Rudin wrote: kj no.em...@please.post writes: 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! No idea, but it would be nice to have some

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

2010-02-25 Thread 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

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

2010-02-25 Thread macbeth
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

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

2010-02-25 Thread Grant Edwards
On 2010-02-25, Paul Rudin paul.nos...@rudin.co.uk wrote: kj no.em...@please.post writes: 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!

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

2010-02-25 Thread Michael Rudolf
Am 25.02.2010 16:07, schrieb Grant Edwards: On 2010-02-25, Paul Rudinpaul.nos...@rudin.co.uk wrote: No idea, but it would be nice to have some multiline comment syntax (other than # at the beginning of each line). Particularly one that can be nested. if 0: Seriously, that's what I generally

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

2010-02-25 Thread Grant Edwards
On 2010-02-25, Michael Rudolf spamfres...@ch3ka.de wrote: Am 25.02.2010 16:07, schrieb Grant Edwards: On 2010-02-25, Paul Rudinpaul.nos...@rudin.co.uk wrote: No idea, but it would be nice to have some multiline comment syntax (other than # at the beginning of each line). Particularly one that

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

2010-02-24 Thread kj
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! Is my memory playing me a trick? After all, from what I've seen since then, the practice of

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

2010-02-24 Thread rantingrick
On Feb 24, 12:18 pm, kj no.em...@please.post 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! Your going to get many opinions on this

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

2010-02-24 Thread mk
Get a decent editor, like PyScripter, and press Ctrl-' (toggle comment). Regards, mk -- http://mail.python.org/mailman/listinfo/python-list

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

2010-02-24 Thread Aahz
In article hm3qhi$2c...@reader2.panix.com, kj no.em...@please.post 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! Is my memory playing

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

2010-02-24 Thread CM
After all, from what I've seen since then, the practice of triple-quote-commenting (or TQC, pardon the TCA) is in fact quite common. Is TQC OK after all? If not, what's the case against it? I have no sense of how approved it is, and don't have a strong opinion on it, but I would think that