Serhiy Storchaka <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue32792>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com