A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-January/156151.html below:

[Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict

[Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict [Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDictPaul Moore p.f.moore at gmail.com
Wed Jan 30 17:55:24 EST 2019
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4