This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author corona10
Recipients corona10, mark.dickinson, methane, pablogsal, rhettinger, serhiy.storchaka, vstinner
Date 2020-10-26.02:55:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603680943.15.0.756484315002.issue42147@roundup.psfhosted.org>
In-reply-to
Content
@pablogsal, @serhiy.storchaka

> I would advise against having more branching, especially for code that is rare:

About bpo-41902, I believe those patches affect all range objects which is created with step is one .

I believe the usage of creation of range object with range(start), range(start, stop) is more than range(start, stop, step) unless there is significant proof that users prefer to create with range(start, stop, step)

So I think that those patches are worth to do it.

but PR 22971 is only affecting to longrange iteration.
it means if there no worth to optimize range(start), range(start, stop) when the start and stop is big number, this issue could be rejected.

And if the patch is rejected, I would like to suggest write a comment on the codeline for the future contributors why we decided to not optimizing this.
History
Date User Action Args
2020-10-26 02:55:43corona10setrecipients: + corona10, rhettinger, mark.dickinson, vstinner, methane, serhiy.storchaka, pablogsal
2020-10-26 02:55:43corona10setmessageid: <1603680943.15.0.756484315002.issue42147@roundup.psfhosted.org>
2020-10-26 02:55:43corona10linkissue42147 messages
2020-10-26 02:55:43corona10create