On Fri, Jun 19, 2020 at 12:25 PM <[email protected]> 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. > If the primary reason is usage in a for loop, why is itertools.count not already sufficient? --- Ricky. "I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/DVFMOF4QY3RTDJUZA2O7XIG4EZXJTJMG/ Code of Conduct: http://python.org/psf/codeofconduct/
