> I'm just wondering (but not dismissing) the use-case?
It's useful to avoid the overhead of concatenating very long hashes if you only need few lookups.
A "lazy" approach if you want.
There some use cases listed in the Py-docs and have a look into the talk for his justification (I deep-linked to 29m10s)
But actually I'm also suspicious about the frequency of such valid use cases, in those rare cases I would personally simply reimplement the get() function as a wrapper like I showed.
Now my intention was to show how easily a py-idiom can be adapted.
But this talk is quite interesting, it often goes into length to describe how to solve problems we do not have in the realm of the onion.
And this with a kind of "hurray" attitude which is somehow alien to me... ¹
( addicted to the Perl Programming Language)
¹) but alas Europeans are bad in marketing! ;-)