Nested loop with same control variable: no warning?
23 May
2016
23 May
'16
3:46 p.m.
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
23 May
23 May
3:49 p.m.
On Mon, May 23, 2016 at 4:46 PM, Dan Stromberg <strombrg@gmail.com> 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
_______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality
Hi, It's probably a bug, please fill an issue in our bug tracker, so we don't lose this. Thank you!
3057
Age (days ago)
3057
Last active (days ago)
1 comments
2 participants
participants (2)
-
Claudiu Popa
-
Dan Stromberg