Very similar things could be said about dict.get too, no? It's easy to 
write your own function that does the same thing or to catch an 
exception.

On the other hand, it seems far more likely to miss keys in a dictionary 
than it is to repeatedly mistake indices in a list.

> Which would be the use cases for this feature?
> 
> I can't think of one.

I've never missed this feature either. But I would also be interested in 
hearing a dream use case.

- DLD


-- 
David Lowry-Duda <[email protected]> <davidlowryduda.com>
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/EUCNY7QZSADRHIGH5KK6BECYGXVDQDRF/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to