STINNER Victor <vstin...@python.org> added the comment:
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. ---------- nosy: +vstinner _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40284> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com