[code-quality] Nested loop with same control variable: no warning?

2016-05-23 Thread Dan Stromberg
Why doesn't the following produce a pylint warning? for counter in range(2): for counter in range(3): print(counter) Note that we've used "counter" twice. Thanks! -- Dan Stromberg ___ code-quality mailing list [email protected] http

Re: [code-quality] Nested loop with same control variable: no warning?

2016-05-23 Thread Claudiu Popa
On Mon, May 23, 2016 at 4:46 PM, Dan Stromberg wrote: > > Why doesn't the following produce a pylint warning? > > for counter in range(2): > for counter in range(3): > print(counter) > > Note that we've used "counter" twice. > > Thanks! > > -- > Dan Stromberg > > __

Re: [code-quality] Pylint failing with tox

2016-05-23 Thread Claudiu Popa
> On Wed, May 18, 2016 at 11:39 AM, Ahirnish Pareek wrote: >> Hi Devs, >> >> Just wondering if anyone has got any pointers on this. >> >> Thanks. >> Hi Ahirnish, I'm not sure how can I replicate this. Can you create an issue on our bug tracker (https://github.com/PyCQA/pylint) with the reproduci