If we're bike shedding, I'd go for "mutableobject". It's not terribly
short, but it is built on familiar python terminology and does exactly what
it says in the box: like object() but mutable

On Wed, 17 Feb 2021, 23:01 Chris Angelico, <ros...@gmail.com> wrote:

> On Thu, Feb 18, 2021 at 8:53 AM Brendan Barnwell <brenb...@brenbarn.net>
> wrote:
> >
> > On 2021-02-17 11:21, Chris Angelico wrote:
> > > Okay. Let's start bikeshedding. If SimpleNamespace were to become a
> > > builtin, what should its name be? It needs to be short (obviously),
> > > but not TOO short, and it needs to be at least somewhat descriptive,
> > > and it needs to not cause confusion with "object". Ideally, it should
> > > get a name that's unlikely to conflict with names already in frequent
> > > use.
> > >
> > > * namespace
> > > * ns
> > > * Thing
> > > * dump
> > > * plunkit
> >
> >         Does using SimpleNamespace have any other meaningful
> ramifications
> > besides being able to add attributes?  When I see people suggest
> > SimpleNamespace, it's usually just to use it as a dict which is accessed
> > with attribute syntax instead of item syntax.  Given that, I think a
> > name like `attrdict` would be appropriate.  (There is already a PyPI
> > package called attrdict that uses this name for this purpose:
> > https://pypi.org/project/attrdict/ ,  And I feel like I've seen other
> > examples of similar names where someone wrote their own
> > mini-implementation of such a thing.)
>
> The main thing it has is a very useful repr, but that doesn't conflict
> with the name attrdict.
>
> ChrisA
> _______________________________________________
> 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/BNXRZJIVFB23M6X374MP24GI7CPMOFSU/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
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/VZ7ZAX443EXVGIZ75XCVL6B6EB7F7NLY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to