Hello, On Thu, 18 Feb 2021 21:27:18 +1100 Steven D'Aprano <st...@pearwood.info> wrote:
[] > Or we could just use a one-liner: > > >>> from types import SimpleNamespace > > and get all of that for free. And if it were a builtin, it would be a > zero-liner. Right. If the whole CPython stdlib were builtin, it all would be zero-liner. But it's not, and won't be. Even such important things as OrderedDict and namedtuple live in a module. So, SimpleNamespace will hopefully remain there too. And good luck with renaming it to something not obscure. My bet is on AttrObject ;-). [] -- Best regards, Paul mailto:pmis...@gmail.com _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/OGFFUF44AS4SHQGSJXFSMZX5RHKDJITM/ Code of Conduct: http://python.org/psf/codeofconduct/