Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #89457
| From | Neal Becker <ndbecker2@gmail.com> |
|---|---|
| Subject | heapq - why no key= arg? |
| Date | 2015-04-27 09:54 -0400 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.43.1430142902.3680.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
heapq - why no key= arg? Neal Becker <ndbecker2@gmail.com> - 2015-04-27 09:54 -0400
csiph-web