On 11Aug2015 14:09, Chris Angelico <ros...@gmail.com> wrote:
On Tue, Aug 11, 2015 at 1:40 PM, Cameron Simpson <c...@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 <c...@zip.com.au>

Ed Campbell's <e...@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.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to