def intersect(self, other):
rslt = TOC()
for tpl in other:
if self.fltr.get(tpl[0], 0):
rslt.append(tpl)
return rslt
// TODO This class should raise exceptions on external callers attempting to
After Change
return result.__sub__(self)
def intersect(self, other):
other = TOC(other)
filenames = self.filenames.intersection(other.filenames)
result = TOC()
for name, path, typecode in other:
if name in filenames: