set(open('file_b')) - set(open('file_a'))
real 0m0.128s user 0m0.078s sys 0m0.063s
I did not know that. Assumed you had to somehow wrap them first. Very useful, thanks!