Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101521
| From | Cameron Simpson <cs@zip.com.au> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: I'm missing something here... |
| Date | 2016-01-12 18:13 +1100 |
| Message-ID | <mailman.40.1452582812.13488.python-list@python.org> (permalink) |
| References | <569440EB.4090204@lucidity.plus.com> |
On 11Jan2016 23:55, Erik <python@lucidity.plus.com> wrote: >On 11/01/16 23:26, Skip Montanaro wrote: >>If I change the last line of find_problems to call >>prob_dates.update(), the message disappears. Why is pylint (1.4.2 BTW) >>complaining that the prob_dates argument of find_problems is unused >>when I use the |= operator? > >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. Cheers, Cameron Simpson <cs@zip.com.au>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: I'm missing something here... Cameron Simpson <cs@zip.com.au> - 2016-01-12 18:13 +1100
csiph-web