Message361674
What is the use case for this? You seem to want `enumerate` to return (item, index) instead of (index, item) when `reverse=True`? You can achieve this yourself easily a custom generator:
>>> def swapped_enumerate(l):
... for idx, item in enumerate(l):
... yield item, idx
...
>>> list(swapped_enumerate(lis))
[('a', 0), ('b', 1), ('c', 2), ('d', 3)] |
|
Date |
User |
Action |
Args |
2020-02-10 08:09:00 | ammar2 | set | recipients:
+ ammar2, wyz23x2 |
2020-02-10 08:09:00 | ammar2 | set | messageid: <1581322140.6.0.764650758737.issue39596@roundup.psfhosted.org> |
2020-02-10 08:09:00 | ammar2 | link | issue39596 messages |
2020-02-10 08:09:00 | ammar2 | create | |
|