Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95244
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.026 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'attributes': 0.07; 'cc:addr:python-list': 0.09; '(unlike': 0.16; 'api,': 0.16; 'fly': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'simpson': 0.16; 'subject:object': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'accepts': 0.29; 'arguments,': 0.29; 'subject:/': 0.30; "can't": 0.32; 'class': 0.33; 'subject:like': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'keyword': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'thought': 0.37; 'does': 0.39; 'subject:-': 0.39; 'some': 0.40; 'more': 0.63; 'cameron': 0.66; 'chrisa': 0.84; 'to:none': 0.91; 'subject:looking': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Gnd237WXoCdBXqAtvxYT73kba+uEj1KmmY9jK2z2hAk=; b=0pk2mwMxq2OAlL3NsL2OEoHQxMy6tW3e7RJMNDUmLlDH5Zaa5Vvd67B+1jkNZzuXhl egCInWe54dYaPrpOC5xVXsTbbBWhIlj/JLPWYQ/km65H7lwmDYomKM89/zCcueOpIbRK I4yq/JBnYq85Rlhyq9qv6SKKlLDWGafCGGLuTW5s9bSI0mwK3kwmTFDO9sg13J8t+KYc hJFsZyeiKAtJ6PqoPS+6EJhAind51Fe6BG8ROyHkK2U8SJzJYPdsSI7BNqxr2e5BbBPR oG2nnb6Lny7xUGP76VgjKtJwoT4T7ICk+665ccHghUZ50Ypfb6GkbVXbN+Bsn7c381XT crNA== |
| MIME-Version | 1.0 |
| X-Received | by 10.107.12.166 with SMTP id 38mr13384789iom.157.1439266191124; Mon, 10 Aug 2015 21:09:51 -0700 (PDT) |
| In-Reply-To | <20150811034049.GA30067@cskk.homeip.net> |
| References | <CAK_Erkid-bWZpUhmLsBmRvDPW2iyQG-RHLRq4LrgJozoC6tMvQ@mail.gmail.com> <20150811034049.GA30067@cskk.homeip.net> |
| Date | Tue, 11 Aug 2015 14:09:51 +1000 |
| Subject | Re: looking for standard/builtin dict-like data object |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.63.1439266194.3627.python-list@python.org> (permalink) |
| Lines | 8 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1439266194 news.xs4all.nl 2899 [2001:888:2000:d::a6]:58938 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:95244 |
Show key headers only | View raw
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