Nested loop

Steve Holden steve at holdenweb.com
Wed Nov 30 12:23:10 EST 2005


Micah Elliott wrote:
> On Nov 29, viewcharts wrote:
> 
>>I am reading two text files comparing the values in one to the other, 
>>this requires two loops.
> 
> 
> Or you could have a look at difflib.
> 
> http://docs.python.org/lib/differ-examples.html
> 
Indeed, but I personally don't see a way to persuade difflib to compare 
the lines of one file with the fourth field of lines in another. Do you 
know something I don't?

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list