[Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict
David Mertz
mertz at gnosis.cx
Wed Jan 30 21:00:31 EST 2019
Ditto +1 option 4
On Wed, Jan 30, 2019, 5:56 PM Paul Moore <p.f.moore at gmail.com wrote:
> On Wed, 30 Jan 2019 at 22:35, Raymond Hettinger
> <raymond.hettinger at gmail.com> wrote:
> > My recommendation is Option 4 as being less disruptive and more
> beneficial than the other options. In the unlikely event that anyone is
> currently depending on the reordering methods for the output of _asdict(),
> the remediation is trivially simple: nt._asdict() ->
> OrderedDict(nt.as_dict()).
> >
> > What do you all think?
>
> +1 from me on option 4.
>
> Paul
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/mertz%40gnosis.cx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20190130/fa55c95a/attachment.html>
More information about the Python-Dev
mailing list