Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95245 > unrolled thread

Re: looking for standard/builtin dict-like data object

Started byCameron Simpson <cs@zip.com.au>
First post2015-08-11 14:28 +1000
Last post2015-08-11 14:28 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: looking for standard/builtin dict-like data object Cameron Simpson <cs@zip.com.au> - 2015-08-11 14:28 +1000

#95245 — Re: looking for standard/builtin dict-like data object

FromCameron Simpson <cs@zip.com.au>
Date2015-08-11 14:28 +1000
SubjectRe: looking for standard/builtin dict-like data object
Message-ID<mailman.64.1439267302.3627.python-list@python.org>
On 11Aug2015 14:09, Chris Angelico <rosuav@gmail.com> wrote:
>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).

Yes, that's it. Thanks!

Cheers,
Cameron Simpson <cs@zip.com.au>

Ed Campbell's <ed@Tekelex.Com> pointers for long trips:
6. *NEVER* trust anyone in a cage, if they weren't nuts they'd be on a
   bike like everyone else.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web