Raymond Hettinger added the comment: FWIW, here is a small patch to show how this could can be done consistently and with code clarity.
---------- title: Reduce the number of comparison for range checking. -> Reduce the number of comparisons for range checking. Added file: http://bugs.python.org/file38293/valid_index.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23553> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com