*Naming Conventions*

Marius Gedminas mgedmin at gmail.com
Mon Jun 11 18:22:43 CEST 2007

On Jun 6, 3:18 pm, Neil Cerutti <horp... at yahoo.com> wrote:
> > Since 'i' and 'j' are canonically loop indices, I find it
> > totally confusing to use them to name the iteration variable -
> > which is not an index.
> Certainly i and j are just as generic, but they have the
> advantage over 'item' of being more terse.

Python programmers usually prefer readability over terseness. Finding
a variable named 'i' that is not an integer index would be surprising
to me.

More information about the Python-list mailing list