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'

Re: How to remove subset from a file efficiently?

2006-01-12 Thread AJL
to remove the numbers present in barred-list from 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