4 ms·
I would say that it's almost good if it wasn't for the Error word in KeyError. If it was something like except KeyDoesNotExist: or KeyNotFound, it would make m
by mewpmewp2 2y ago
I would say that it's almost good if it wasn't for the Error word in KeyError.
If it was something like except KeyDoesNotExist: or KeyNotFound, it would make more sense for me, because it seems hacky to consider it an error where it's a normal default to some value behaviour.
- syllogism 2y agoI still think using the exception mechanism for things that could just be conditionals is bad. I elaborated on this to a sibling comment.