|
|
Log in / Subscribe / Register

[Python-Dev] Re: Improvement to SimpleNamespace

Thread information [Search the python-dev archive]

From:  Guido van Rossum <guido-AT-python.org>
To:  Raymond Hettinger <raymond.hettinger-AT-gmail.com>
Subject:  [Python-Dev] Re: Improvement to SimpleNamespace
Date:  Tue, 14 Apr 2020 21:25:27 -0700
Message-ID:  <CAP7+vJKUP-p7KhZDF7Z8O0ad6WvqA3J9=sZ=SDo2DqhDqqq-5Q@mail.gmail.com>
Cc:  "Python-Dev-AT-Python. Org" <python-dev-AT-python.org>

On Tue, Apr 14, 2020 at 9:08 PM Raymond Hettinger <
[email protected]> wrote:

> [GvR]
> > We should not try to import JavaScript's object model into Python.
>
> Yes, I get that.  Just want to point-out that working with heavily nested
> dictionaries (typical for JSON) is no fun with square brackets and
> quotation marks.
>

Yeah, I get that too. So maybe this should be limited to JSON? Could the
stdlib json library be made to return objects that support this (maybe with
an option)?

-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-sin...>


Attachment: None (type=text/html)

(HTML attachment elided)


Attachment: None (type=text/plain)

_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.... Message archived at https://mail.python.org/archives/list/[email protected]... Code of Conduct: http://python.org/psf/codeofconduct/


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds