Dong-hee Na <donghee...@python.org> added the comment:

@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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42147>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to