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 ammar2
Recipients ammar2, wyz23x2
Date 2020-02-10.08:09:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581322140.6.0.764650758737.issue39596@roundup.psfhosted.org>
In-reply-to
Content
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)]
History
Date User Action Args
2020-02-10 08:09:00ammar2setrecipients: + ammar2, wyz23x2
2020-02-10 08:09:00ammar2setmessageid: <1581322140.6.0.764650758737.issue39596@roundup.psfhosted.org>
2020-02-10 08:09:00ammar2linkissue39596 messages
2020-02-10 08:09:00ammar2create