I've come across some Python v2.7 code that I have refactored to become this:
for ssid in (ssid for ssid in overlaps
if ssid != subseq_id and ssid not in merged):
But it feels to me that there should be a way to express this without using two for
statements?