How would you name this dictionary?

Cameron Simpson cs at cskk.id.au
Sun Jan 21 19:09:45 EST 2024


On 21Jan2024 23:39, bagratte at live.com <bagratte at live.com> wrote:
>class NameMe(dict):
>    def __missing__(self, key):
>        return key

I would need to know more about what it might be used for. What larger 
problem led you to writing a `dict` subclass with this particular 
`__missing__` implementation?


More information about the Python-list mailing list