Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101527
| From | Erik <python@lucidity.plus.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: I'm missing something here... |
| Date | 2016-01-12 08:24 +0000 |
| Message-ID | <mailman.46.1452587275.13488.python-list@python.org> (permalink) |
| References | <569440EB.4090204@lucidity.plus.com> <20160112071322.GA12153@cskk.homeip.net> |
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: I'm missing something here... Erik <python@lucidity.plus.com> - 2016-01-12 08:24 +0000
csiph-web