Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Sorry, I was wrong. reversed() is not needed here.

The advantage of this implementation is that it can be faster because of 
iterating mappings in C code instead of Python code. But the side effect of it 
is that the iterator keeps references to all values. If this is not desirable, 
the code can be written something like:

    return iter(dict.fromkeys(itertools.chain.from_iterable(self.maps)))

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32792>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to