my code is

https://gist.github.com/hoyeunglee/58df4c41a63a2f37e153cbdbc03c16bf


would like to apply itertools.combinations to use redis to use hard disk as
memory rather than using ram(real memory) as memory

def edge_gen(self):
    # we combine  haplotypes by two
    for hap0, hap1 in itertools.combinations(self.haplotypes_cache.values(), 2):
        w = weight.weight("hamming", hap0, hap1)
        haps_id = hap0.hap_id, hap1.hap_id
        yield dom.Edge(w, haps_id)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to