[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: How would you name this dictionary?
From:       Cameron Simpson via Python-list <python-list () python ! org>
Date:       2024-01-22 0:09:45
Message-ID: Za2ySXa9Dy4TFejy () cskk ! homeip ! net
[Download RAW message or body]

On 21Jan2024 23:39, bagratte@live.com <bagratte@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?
-- 
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic