This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ned.deily, rhettinger, serhiy.storchaka
Date 2018-02-11.08:52:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518339172.81.0.467229070634.issue32792@psf.upfronthosting.co.za>
In-reply-to
Content
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)}))
History
Date User Action Args
2018-02-11 08:52:52serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ned.deily
2018-02-11 08:52:52serhiy.storchakasetmessageid: <1518339172.81.0.467229070634.issue32792@psf.upfronthosting.co.za>
2018-02-11 08:52:52serhiy.storchakalinkissue32792 messages
2018-02-11 08:52:52serhiy.storchakacreate