Re: [Tutor] dummy, underscore and unused local variables

2011-06-11 Thread Steven D'Aprano
Tim Johnson wrote: Consider the following code: for i in range(mylimit): foo() running pychecker gives me a """ Local variable (i) not used """ complaint. If I use for dummy in range(mylimit): ## or for _ in range(mylimit): I get no complaint from pychecker. I wou

[Tutor] dummy, underscore and unused local variables

2011-06-11 Thread Tim Johnson
Consider the following code: for i in range(mylimit): foo() running pychecker gives me a """ Local variable (i) not used """ complaint. If I use for dummy in range(mylimit): ## or for _ in range(mylimit): I get no complaint from pychecker. I would welcome comments on