Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #89457 > unrolled thread
| Started by | Neal Becker <ndbecker2@gmail.com> |
|---|---|
| First post | 2015-04-27 09:54 -0400 |
| Last post | 2015-04-27 09:54 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
heapq - why no key= arg? Neal Becker <ndbecker2@gmail.com> - 2015-04-27 09:54 -0400
| From | Neal Becker <ndbecker2@gmail.com> |
|---|---|
| Date | 2015-04-27 09:54 -0400 |
| Subject | heapq - 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
Back to top | Article view | comp.lang.python
csiph-web