In message <[EMAIL PROTECTED]>, Ben Finney wrote:

> [EMAIL PROTECTED] writes:
> 
>> What's with the index() function of lists throwing an exception on not
>> found?
> 
> It's letting you know that the item isn't in the list. There's no
> sensible return value from an "index" function in that condition.

How about returning None? That's what's already done by the dict.get method
by default.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to