[issue30690] ChainMap doesn't preserve the order of ordered mappings

2017-06-17 Thread Raymond Hettinger
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

[issue30690] ChainMap doesn't preserve the order of ordered mappings

2017-06-17 Thread Serhiy Storchaka
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