by father_of_two · 11y ago · 0 comments
cnt=Counter(tuple(Counter(w).iteritems()) for w in words)
print [w for w in words if cnt[tuple(Counter(w).iteritems())] > 1]
This is just code golfing, I don't even think it's clear. The last solution of the author is nice, though.