`heapq.merge` is not a mergesort, it's a merge of sorted sequences (aka just the merge part of a mergesort).