Raymond Hettinger added the comment: This code looks good and will certainly reduce the number of comparisons in non-trivial cases.
FWIW, It looks like the index functions are lifted directly from the bisect docs. Steven, any objections? ---------- nosy: +rhettinger stage: -> patch review versions: -Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26002> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com