heapq - why no key= arg?

Neal Becker ndbecker2 at gmail.com
Mon Apr 27 15:54:51 CEST 2015


Looking at heapq, I see only nlargest/nsmallest provide a key= arg.  What 
about other operations, such as heapify?  Am I not understanding something?  
I suppose for other ops, such as heapify, I can only customize comparison by 
customizing the object comparison operators?

-- 
Those who fail to understand recursion are doomed to repeat it




More information about the Python-list mailing list