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-10.23:03:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518303817.29.0.467229070634.issue32792@psf.upfronthosting.co.za>
In-reply-to
Content
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)))
History
Date User Action Args
2018-02-10 23:03:37serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ned.deily
2018-02-10 23:03:37serhiy.storchakasetmessageid: <1518303817.29.0.467229070634.issue32792@psf.upfronthosting.co.za>
2018-02-10 23:03:37serhiy.storchakalinkissue32792 messages
2018-02-10 23:03:37serhiy.storchakacreate