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-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 f

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

2010-02-25 Thread Grant Edwards
On 2010-02-25, Michael Rudolf wrote: > Am 25.02.2010 16:07, schrieb Grant Edwards: >> On 2010-02-25, Paul Rudin 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: >>

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 Rudin 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 do: mark the block of c

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

2010-02-25 Thread Grant Edwards
On 2010-02-25, Paul Rudin wrote: > kj 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 t

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,

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

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

2010-02-25 Thread Tim Chase
Paul Rudin wrote: kj 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 Paul Rudin
kj 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 syntax (other

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

2010-02-24 Thread Steven D'Aprano
On Wed, 24 Feb 2010 18:18:27 +, 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! > > Is my memory playing me a trick? > > A

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 thin

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

2010-02-24 Thread Aahz
In article , 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! > >Is my memory playing me a trick? Possibly. I certainly do that

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 rantingrick
On Feb 24, 12:18 pm, 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! Your going to get many opinions on this subject but my s