[EMAIL PROTECTED] wrote:
> But a really fast approach is to use a dictionary or other structure
> that turns the inner loop into a fast lookup, not a slow loop through
> the 'Customers' list.
Another approach is to sort both sequences, loop over
both in one loop and just update the index for the
You'll probably see a slight speed increase with something like
for a in CustomersToMatch:
for b in Customers:
if a[2] == b[2]:
a[1] = b[1]
break
But a really fast approach is to use a dictionary or other structure
that turns the inner loop in
Hello,
I'm working on a simple project in Python that reads in two csv files
and compares items in one file with items in another for matches. I
read the files in using the csv module, adding each line into a list.
Then I run the comparision on the lists. This works fine, but I'm
curious about p