Message311969
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))) |
|
Date |
User |
Action |
Args |
2018-02-10 23:03:37 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, ned.deily |
2018-02-10 23:03:37 | serhiy.storchaka | set | messageid: <1518303817.29.0.467229070634.issue32792@psf.upfronthosting.co.za> |
2018-02-10 23:03:37 | serhiy.storchaka | link | issue32792 messages |
2018-02-10 23:03:37 | serhiy.storchaka | create | |
|