File compare

Magnus Lycka lycka at
Fri Oct 14 16:29:58 CEST 2005

PyPK wrote:
> I have two files
> file1 in format
> <id> <val1> <test1> <test2>
> 'AA' 1 T T
> 'AB' 1 T F
> file2 same as file1
> <id> <val1> <test1> <test2>
> 'AA' 1 T T
> 'AB' 1 T T
> Also the compare should be based on id. So it should look for line
> starting with id 'AA' (for example) and then match the line  so if in
> second case.

See the recent thread with subject line "List performance and CSV".

More information about the Python-list mailing list