On 11Aug2015 14:09, Chris Angelico <[email protected]> wrote:
On Tue, Aug 11, 2015 at 1:40 PM, Cameron Simpson <[email protected]> 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 <[email protected]>
Ed Campbell's <[email protected]> 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