comparing lists

Mark McEahern marklists at mceahern.com
Thu Mar 20 13:47:58 CET 2003


[Enrique Palomo]
> I must compare the contained of several directories in several pcs. Each
directory must contain about 17000 files.
>
> Do you know any special method to compare the lists of listdir quickly?

As others have pointed out, you haven't been terribly clear about what you
think "compare" or "quickly" means--so I'll just ignore that and suggest you
check out the filecmp module in the standard library.  <wink>

Cheers,

// m

-






More information about the Python-list mailing list