On Mon, Aug 15, 2016 at 2:01 AM Jussi Piitulainen <
[email protected]> 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.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to