Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: The code in msg311969 doesn't reuse hash values. The following implementations do this:
return iter({**m for m in reversed(self.maps)}) or, without keeping reverences to values: return iter(list({**m for m in reversed(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