This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger, vstinner
Date 2020-04-14.21:40:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586900454.72.0.325069886118.issue40284@roundup.psfhosted.org>
In-reply-to
Content
> I would prefer that SimpleNamespace remains as simple as it is

This doesn't affect the simplicity of the current API at all.  If you don't need the feature, you won't even notice the extension.

> If you want to add the mapping protocol, I suggest you to create
> your own subclass and add the methods that you want

I do that for myself.  However, users would greatly benefit from having this an option.

We don't ask users to write their own defaultdicts from scratch even though that is simple dict subclass.  Providing this tool would instantly benefit a broad class of json users.
History
Date User Action Args
2020-04-14 21:40:54rhettingersetrecipients: + rhettinger, vstinner
2020-04-14 21:40:54rhettingersetmessageid: <1586900454.72.0.325069886118.issue40284@roundup.psfhosted.org>
2020-04-14 21:40:54rhettingerlinkissue40284 messages
2020-04-14 21:40:54rhettingercreate