On Thu, Feb 18, 2021 at 06:21:19AM +1100, Chris Angelico wrote:

> > I would personally love for SimpleNamespace to get a shorter name and 
> > become a built-in.
> >
> 
> Okay. Let's start bikeshedding. If SimpleNamespace were to become a
> builtin, what should its name be?

The traditional name is "Bunch". Nineteen years ago, Alex Martelli's 
recipe for Bunch was published in the Python Cookbook. You can still 
find the recipe here:

https://code.activestate.com/recipes/52308-the-simple-but-handy-collector-of-a-bunch-of-named/

Another common name is "Bag", although I've also seen that used as a 
name for a multiset.


-- 
Steve
_______________________________________________
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/VUKQYOMLQ4MLDOTOCA4DJDHJ4QREPDSL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to