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 vstinner
Recipients rhettinger, vstinner
Date 2020-04-14.21:31:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586899862.4.0.238271338404.issue40284@roundup.psfhosted.org>
In-reply-to
Content
I would prefer that SimpleNamespace remains as simple as it is:

https://docs.python.org/dev/library/types.html#types.SimpleNamespace
"A simple object subclass that provides attribute access to its namespace"

If you want to add the mapping protocol, I suggest you to create your own subclass and add the methods that you want.
History
Date User Action Args
2020-04-14 21:31:02vstinnersetrecipients: + vstinner, rhettinger
2020-04-14 21:31:02vstinnersetmessageid: <1586899862.4.0.238271338404.issue40284@roundup.psfhosted.org>
2020-04-14 21:31:02vstinnerlinkissue40284 messages
2020-04-14 21:31:02vstinnercreate