[Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict
Nathaniel Smith
njs at pobox.com
Wed Jan 30 21:10:17 EST 2019
More information about the Python-Dev mailing list
Wed Jan 30 21:10:17 EST 2019
- Previous message (by thread): [Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict
- Next message (by thread): [Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict
- Next message (by thread): [Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list