Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #89457 > unrolled thread

heapq - why no key= arg?

Started byNeal Becker <ndbecker2@gmail.com>
First post2015-04-27 09:54 -0400
Last post2015-04-27 09:54 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  heapq - why no key= arg? Neal Becker <ndbecker2@gmail.com> - 2015-04-27 09:54 -0400

#89457 — heapq - why no key= arg?

FromNeal Becker <ndbecker2@gmail.com>
Date2015-04-27 09:54 -0400
Subjectheapq - why no key= arg?
Message-ID<mailman.43.1430142902.3680.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web