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 -- [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/GQFXZECN6ZTQLIPHB3RPNWVUP3V4BRCQ/
Code of Conduct: http://python.org/psf/codeofconduct/