[fynali]
> I have two files:
>
>   - PSP0000320.dat (quite a large list of mobile numbers),
>   - CBR0000319.dat (a subset of the above, a list of barred bumbers)

# print all non-barred mobile phone numbers
barred = set(open('CBR0000319.dat'))
for num in open('PSP0000320.dat'):
    if num not in barred:
        print num,

Raymond

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to