this list
this category
Advanced
Mailing List Archive
Login
Register
Help
Mailing List Archive
GT.net
GT.net
Login
Register
Help
this list
this category
Advanced
Mailing List Archive
Home
>
Python
>
Python
How would you name this dictionary?
python-list at python
Jan 21, 2024, 11:39 AM
Post #1 of 2
(64 views)
Permalink
class NameMe(dict):
def __missing__(self, key):
return key
--
https://mail.python.org/mailman/listinfo/python-list
Re: How would you name this dictionary? [
In reply to
]
python-list at python
Jan 21, 2024, 4:09 PM
Post #2 of 2
(63 views)
Permalink
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