Message413428
Hi everyone. I have an idea which is add a new feature to enumerate(iterable, start=0) built-in function. I mean, "start" is ascending by default, we can add a feature to this function to change start in descending order.
for example:
enumerate(iterable, start=100, reverse=True)
reverse: If True, the start is reversed.
(100, iterable[0]), (99, iterable[1],), and so on. |
|
Date |
User |
Action |
Args |
2022-02-17 18:37:45 | HosseinRanjbari | set | recipients:
+ HosseinRanjbari, larry, docs@python, lys.nikolaou, pablogsal |
2022-02-17 18:37:45 | HosseinRanjbari | set | messageid: <1645123065.19.0.230809388528.issue46783@roundup.psfhosted.org> |
2022-02-17 18:37:45 | HosseinRanjbari | link | issue46783 messages |
2022-02-17 18:37:45 | HosseinRanjbari | create | |
|