Raymond Hettinger added the comment:
Until regular dicts guarantee order, I don't want to go down this path for
ChainMap which currently makes no guarantees about preserving and passing
through properties of the underlying mappings. The current implementation is
short, fast, and reliable. I
New submission from Serhiy Storchaka:
Iterating ChainMap emits keys in mixed order even if all underlying mappings
are ordered dicts (OrderedDict). Would be nice to keep the order more
predictable.
This would solve issue30664. See also issue30689.
--
components: Library (Lib)
messages