[Python-ideas] Anonymous namedtuples
contrebasse at gmail.com
Tue Apr 19 10:09:45 EDT 2016
> That's entirely possible. For the situations where order is
> insignificant and unpacking is unnecessary, a SimpleNamespace would be
> perfect, if people knew about it. Probably not worth moving the actual
> class, but a quick little docs link might help.
How big a problem would it be to actually move the class to collections ?
For example at the top of the documentation there is a table with all the
available container classes, having SimpleNamespace would be far more
discoverable than a paragraph in namedtuple.
The class could still be importable from types.SimpleNamespace for backward
Sorry for my noob questions...
More information about the Python-ideas