Closed GuillaumeGomez closed 2 years ago
.get() returns None if the item wasn't found, which is its main advantage over indexing with [] which throws an error when the key wasn't found.
.get()
None
[]
Thanks for the patch! Since this does not change the underlying behaviour, I won't push this to a release yet.
No problem. I need to send a more important fix anyway.
.get()
returnsNone
if the item wasn't found, which is its main advantage over indexing with[]
which throws an error when the key wasn't found.