Message361676
You can already do this using existing composable tools, including:
>>> list((item, idx) for idx, item in enumerate(lis))
[('a', 0), ('b', 1), ('c', 2), ('d', 3)]
>>>
We won't be adding a parameter to enumerate in order add another way of doing this.
If you really want to pursue this, you should discuss it on the python-ideas mailing list and try to get the idea accepted there. But it really doesn't have any chance of being accepted. |
|
Date |
User |
Action |
Args |
2020-02-10 09:24:03 | eric.smith | set | recipients:
+ eric.smith, ammar2, wyz23x2 |
2020-02-10 09:24:03 | eric.smith | set | messageid: <1581326643.13.0.235200557048.issue39596@roundup.psfhosted.org> |
2020-02-10 09:24:03 | eric.smith | link | issue39596 messages |
2020-02-10 09:24:02 | eric.smith | create | |
|