Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101521 > unrolled thread
| Started by | Cameron Simpson <cs@zip.com.au> |
|---|---|
| First post | 2016-01-12 18:13 +1100 |
| Last post | 2016-01-12 18:13 +1100 |
| 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.
Re: I'm missing something here... Cameron Simpson <cs@zip.com.au> - 2016-01-12 18:13 +1100
| From | Cameron Simpson <cs@zip.com.au> |
|---|---|
| Date | 2016-01-12 18:13 +1100 |
| Subject | Re: I'm missing something here... |
| Message-ID | <mailman.40.1452582812.13488.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web