*Naming Conventions*
Wildemar Wildenburger
wildemar at freakmail.de
Mon Jun 4 17:53:27 EDT 2007
Carsten Haese wrote:
> On Mon, 2007-06-04 at 23:20 +0200, Wildemar Wildenburger wrote:
>
>> I guess it is commonplace to use i, j, k and n
>> (maybe others) in constructs like
>>
>> for i in range(len(data)):
>> do_stuff(data[i])
>>
>> Or should the good python hacker do that differently? Hope not ;).
>>
>
> That's a big, fat "Heck, Yes":
>
> for thing in data:
> do_stuff(thing)
>
>
Boy is my face red! Holy Moly ... that was so obvious! See, that's what
you get for coding too much matlab! Screw that!
/W
More information about the Python-list
mailing list