[Python-ideas] Anonymous namedtuples
Steven D'Aprano
steve at pearwood.info
Tue Apr 19 08:06:28 EDT 2016
On Tue, Apr 19, 2016 at 11:25:07AM +0100, Paul Moore wrote:
> Possibly the docs for namedtuple should refer the user to
> SimpleNamespace as an alternative if "being a tuple subclass" isn't an
> important requirement. Or possibly SimpleNamespace should be in the
> collections module (alongside namedtuple) rather than in the types
> module?
+1
I'm repeatedly surprised that SimpleNamespace isn't in collections.
> The issue may simply be that SimpleNamespace isn't as discoverable as
> it should be?
This.
--
Steve
More information about the Python-ideas
mailing list