Re: How to remove subset from a file efficiently?

2006-01-13 Thread AJL
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?

2006-01-12 Thread AJL
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