[New-bugs-announce] [issue46783] Add a new feature to enumerate(iterable, start=0) built-in function

Hossein report at bugs.python.org
Thu Feb 17 13:37:45 EST 2022


New submission from Hossein <ranjbari.hossein9945 at gmail.com>:

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.

----------
assignee: docs at python
components: Argument Clinic, Build, Demos and Tools, Documentation, Interpreter Core, Parser
messages: 413428
nosy: HosseinRanjbari, docs at python, larry, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: Add a new feature to enumerate(iterable, start=0) built-in function
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46783>
_______________________________________


More information about the New-bugs-announce mailing list