Mark Dickinson <dicki...@gmail.com> added the comment: So this can happen only if grouping is [0] (or an equivalent iterable). Since this is an invalid grouping, I think the appropriate response would be for _grouping_intervals([0]) to raise an exception (which is what it currently does as soon as you iterate over the result, though this is possibly not by design. :)
Vincent, does the attached patch (_grouping_intervals.patch, against py3k) silence the pylint warning? ---------- nosy: +marketdickinson Added file: http://bugs.python.org/file14627/_grouping_intervals.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6620> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com