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/156158.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 OrderedDictNathaniel Smith njs at pobox.com
Wed Jan 30 21:10:17 EST 2019
On Wed, Jan 30, 2019 at 2:34 PM Raymond Hettinger
<raymond.hettinger at gmail.com> wrote:
> Now that regular dicts are ordered and compact, it makes more sense for the _asdict() method to create a regular dict (as it did in its early days) rather than an OrderedDict.  The regular dict is much smaller, much faster, and has a much cleaner looking repr.

How viable would it be to make OrderedDict smaller, faster, and give
it a cleaner looking repr?

-n

-- 
Nathaniel J. Smith -- https://vorpus.org
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