[Python-ideas] A namedtuple literal.

Eric Snow ericsnowcurrently at gmail.com
Thu Apr 3 16:02:26 CEST 2014


On Apr 3, 2014 7:32 AM, <random832 at fastmail.us> wrote:
> Really, it'd almost be nicer to have a _single_ "bag of attributes" type
> [i.e. class c: pass], and literals for it.

So you'd like a literal for types.SimpleNamespace!

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140403/6e6b632b/attachment-0001.html>


More information about the Python-ideas mailing list