Message246897
Neither of those example should work (and neither do on my 3.4.0 installation). Heaps must have sortable components; you could only include callables (which are not sortable) in the tuples being sorted if you guarantee that some element(s) before the callable will ensure the elements are ordered without falling back on comparing the callable members. This isn't a bug; heapq.heapify() *should* fail in this case, and in any case where sorted() would fail due to uncomparable objects. |
|
Date |
User |
Action |
Args |
2015-07-18 12:32:51 | josh.r | set | recipients:
+ josh.r, socketpair |
2015-07-18 12:32:51 | josh.r | set | messageid: <1437222771.54.0.425029341578.issue24660@psf.upfronthosting.co.za> |
2015-07-18 12:32:51 | josh.r | link | issue24660 messages |
2015-07-18 12:32:51 | josh.r | create | |
|