Is using range() in for loops really Pythonic?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue May 13 03:27:55 EDT 2008


On Mon, 12 May 2008 11:23:07 -0700, Carl Banks wrote:

> On May 12, 3:42 am, Ben Finney <bignose+hates-s... at benfinney.id.au>
> wrote:
>> Because of the precedent of those names, choosing one of those names
>> doesn't make it clear to the reader that the value is never used;
> 
> 
> Why is it even necessary to document this?  This is the thing that
> baffles me the most about this thread.

I do it (with a "special" name) because static source checkers issue a
warning for unused variables.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list