Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95244
| References | <CAK_Erkid-bWZpUhmLsBmRvDPW2iyQG-RHLRq4LrgJozoC6tMvQ@mail.gmail.com> <20150811034049.GA30067@cskk.homeip.net> |
|---|---|
| Date | 2015-08-11 14:09 +1000 |
| Subject | Re: looking for standard/builtin dict-like data object |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.63.1439266194.3627.python-list@python.org> (permalink) |
On Tue, Aug 11, 2015 at 1:40 PM, Cameron Simpson <cs@zip.com.au> wrote: > I also thought the stdlib had some kind of "namespace" class with this kind > of API, but I can't find it now:-( It does - types.SimpleNamespace(). It accepts keyword arguments, and will let you create more attributes on the fly (unlike a namedtuple). ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: looking for standard/builtin dict-like data object Chris Angelico <rosuav@gmail.com> - 2015-08-11 14:09 +1000
csiph-web