On Mon, Aug 15, 2016 at 2:01 AM Jussi Piitulainen < jussi.piitulainen at helsinki.fi> wrote: > There is a tradition of returning -1 when no valid index is found. > Sometimes it's better to break with tradition. Raise a ValueError. No silent errors, and all that Zen.