[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-05-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +12965 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 85d83ec7c99727476c79feb5c34c65264a99144e by Raymond Hettinger (Amador Pahim) in branch 'master': bpo-35864: fix namedtuple._asdict() docstring (GH-11720) https://github.com/python/cpython/commit/85d83ec7c99727476c79feb5c34c65264a99144e

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Eric Snow
Eric Snow added the comment: FWIW, both PEP 468 (kwargs order) and PEP 520 (class definition order) specify order-preserving mapping rather than dict. The main difference is that they are about language features rather than something out of the stdlib. :) -- ___

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Eric Snow
Eric Snow added the comment: If you prefer, I'd be glad to open separate issues for either thing. -- ___ Python tracker ___ ___ Pyt

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Eric Snow
Eric Snow added the comment: Also, there's a potentially misleading detail that you might consider correcting in the text. However, making it correct might make it slightly less clear, so it's a bit of a judgement call on how important it is to be explicit here. (FWIW, I think it's worth i

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Eric Snow
Eric Snow added the comment: Thanks for doing this, Raymond! FYI, I found a couple of places where it still refers to OrderedDict: 1. in the doc entry in collections.rst [1] 2. in the docstring [2] [1] https://github.com/python/cpython/commit/0bb4bdf0d93b301407774c4ffd6df54cff947df8#diff-a

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11589, 11590, 11592 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11589 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11589, 11590 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11589, 11590, 11591, 11592 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0bb4bdf0d93b301407774c4ffd6df54cff947df8 by Raymond Hettinger in branch 'master': bpo-35864: Replace OrderedDict with regular dict in namedtuple() (#11708) https://github.com/python/cpython/commit/0bb4bdf0d93b301407774c4ffd6df54cff947df8 --

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch, patch, patch pull_requests: +11564, 11565, 11566 stage: -> patch review ___ Python tracker ___ _

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch, patch pull_requests: +11564, 11565 stage: -> patch review ___ Python tracker ___ ___

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +11564 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-01-30 Thread Raymond Hettinger
New submission from Raymond Hettinger : 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 lookin