Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101527 > unrolled thread

Re: I'm missing something here...

Started byErik <python@lucidity.plus.com>
First post2016-01-12 08:24 +0000
Last post2016-01-12 08:24 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: I'm missing something here... Erik <python@lucidity.plus.com> - 2016-01-12 08:24 +0000

#101527 — Re: I'm missing something here...

FromErik <python@lucidity.plus.com>
Date2016-01-12 08:24 +0000
SubjectRe: I'm missing something here...
Message-ID<mailman.46.1452587275.13488.python-list@python.org>
On 12/01/16 07:13, Cameron Simpson wrote:
> On 11Jan2016 23:55, Erik <python@lucidity.plus.com> wrote:
>> Is it complaining about that, or is it because the 'for' loop body
>> might be executed zero times?
>
> The former. Almost any loop _might_ be executed zero times. Compilers
> and linters etc should only complain if they can prove the loop is
> always executed zero times.

Sure, but Skip was thinking he'd found a bug - I was just raising the 
possibility that the bug could have been that the loop was (incorrectly) 
determined to be executed zero times for some reason.

E.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web