Raymond Hettinger added the comment: Since heapq uses the C version of nsmallest, this micro-optimization doesn't actually help any real code. Am marking this as low priority and will come back to it at some point and will review the pure python version. Ideally, it should parallel the C version which doesn't use bisect at all.
---------- priority: normal -> low _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16098> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com