This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author josh.r
Recipients josh.r, socketpair
Date 2015-07-18.12:32:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437222771.54.0.425029341578.issue24660@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-07-18 12:32:51josh.rsetrecipients: + josh.r, socketpair
2015-07-18 12:32:51josh.rsetmessageid: <1437222771.54.0.425029341578.issue24660@psf.upfronthosting.co.za>
2015-07-18 12:32:51josh.rlinkissue24660 messages
2015-07-18 12:32:51josh.rcreate