On Thu, Feb 18, 2021 at 9:57 PM Steven D'Aprano <st...@pearwood.info> wrote: > > 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. >
Yeah, not a fan of Bag because of that usage, but I'm liking Bunch. 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/H5BKHDW5F4H3RCWFWO5EYEENTSEBCGM7/ Code of Conduct: http://python.org/psf/codeofconduct/