Louie Lu added the comment:
Additional note, the order will changed it random way in ChainMap, e.g.:
>>> for k, v in ChainMap({'a': 0, 'b': 1, 'c': 2}, {'b': 3, 'a': 4}).items():
>>> print(k, v)
...
a 0
c 2
b 1
-----restart----
>>> for k, v in ChainMap({'a': 0, 'b': 1, 'c': 2}, {'b': 3, 'a': 4}).items():
>>> print(k, v)
...
b 1
c 2
a 0
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com