Re: How to remove subset from a file efficiently?
On 12 Jan 2006 22:29:22 -0800 Raymond Hettinger [EMAIL PROTECTED] wrote: AJL wrote: How fast does this run? a = set(file('PSP320.dat')) b = set(file('CBR319.dat')) file('PSP-CBR.dat', 'w').writelines(a.difference(b)) Turning PSP into a set takes extra time, consumes
Re: How to remove subset from a file efficiently?
the PSPfile. How fast does this run? a = set(file('PSP320.dat')) b = set(file('CBR319.dat')) file('PSP-CBR.dat', 'w').writelines(a.difference(b)) AJL -- http://mail.python.org/mailman/listinfo/python-list