How on earth is "count()" not easily available? On Fri, Jun 19, 2020 at 12:23 PM <ke...@edinburghacademy.org.uk> wrote:
> Proposal: > range(start, ..., step) > should function like > itertools.count(start, step) > > Reason: > It's pretty common to see people do things where they increment a count > within a while True loop, and it would be nice to have something easily > available for people to use to replace this. > > Usefulness: > There is definitely a use for this, as the type of code mentioned above is > common, and itertools.count is commonly used as well. > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/6WEV73JM4EARGAYT6JIFH35Y5MRLK3MX/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- The dead increasingly dominate and strangle both the living and the not-yet born. Vampiric capital and undead corporate persons abuse the lives and control the thoughts of homo faber. Ideas, once born, become abortifacients against new conceptions.
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/6YQLTM34KL2J6HILHQKKHH7WL7OV6A46/ Code of Conduct: http://python.org/psf/codeofconduct/