On 10/04/2020 12:43, Soni L. wrote:
it's actually fairly common to deal with KeyError instead of using dict.get or w/e.

KeyError is also raised when your code has a bug and your assumptions got broken.

it's fairly easy to get the two different KeyErrors mixed up, at least.

So don't do that, then.

--
Rhodri James *-* Kynesim Ltd
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/GQFXZECN6ZTQLIPHB3RPNWVUP3V4BRCQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to