[EMAIL PROTECTED] wrote: > I can try that. Is using range(len(a)) a bad solution in the sense > that its likely to create an unexpected error? Or because there is a > more efficient way to accomplish the same thing?
for-in uses an internal index counter to fetch items from the sequence, so for item in seq: function(item) is simply a shorter and more efficient way to write for item in range(len(seq)): function(seq[item]) also see this article: http://online.effbot.org/2006_11_01_archive.htm#for </F> -- http://mail.python.org/mailman/listinfo/python-list