def Iterator (handle, parser, intersect=False): for line in getLine(handle): if intersect: f = line.split("\t") s1 = "\t".join(f[0:10]) s2 = "\t".join(f[10:20]) olap = f[20] yield parser.parseString(s1), parser.parseString(s2), olap else: yield parser.parseString(line) yield parser.parseString(line)
def Iterator (handle, parser, intersect=False): for line in getLine(handle): yield parser.parseString(line)