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
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
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:
>>
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
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
> 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,
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
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
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
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
> 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
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
Get a decent editor, like PyScripter, and press Ctrl-' (toggle comment).
Regards,
mk
--
http://mail.python.org/mailman/listinfo/python-list
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
14 matches
Mail list logo