I'm missing something here...

Erik python at lucidity.plus.com
Mon Jan 11 18:55:23 EST 2016


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?

E.



More information about the Python-list mailing list