help with loops

2006-03-08 Thread Catalina Scott A Contr AFCA/EVEO
Paul, I will check out difflib thanks.   Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: help with loops

2006-03-06 Thread Paul McGuire
"Catalina Scott A Contr AFCA/EVEO" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I was trying to compare each line of file1 with each line of file2. Your solution worked perfectly. Thanks! Scott === See if the difflib module would be of any help. -- Paul

RE: help with loops

2006-03-06 Thread Catalina Scott A Contr AFCA/EVEO
March 06, 2006 9:48 AM To: 'Tim Chase' Cc: python-list@python.org Subject: RE: help with loops I was trying to compare each line of file1 with each line of file2. Your solution worked perfectly. Thanks! Scott -Original Message- From: Tim Chase [mailto:[EMAIL PROTECTED] Sen

RE: help with loops

2006-03-06 Thread Catalina Scott A Contr AFCA/EVEO
: Re: help with loops > I have two files and I want to pull out lines from file 2 > if certain conditions are found if file 1. Well, I'm not quite sure from your description of the problem if you want to compare every line in file1 against every line in file2, or if you just want to co

Re: help with loops

2006-03-06 Thread Tim Chase
> I have two files and I want to pull out lines from file 2 > if certain conditions are found if file 1. Well, I'm not quite sure from your description of the problem if you want to compare every line in file1 against every line in file2, or if you just want to compare line1 of file1 with line

help with loops

2006-03-06 Thread Catalina Scott A Contr AFCA/EVEO
Hello,   I am not having luck writing code to do what I want and could use a hand.   I have two files and I want to pull out lines from file 2 if certain conditions are found if file 1.     for line in readfile1:     list1 = line.split(',')     for line in readfile2:     li