Raymond Hettinger <[email protected]> added the comment:
> Should I restore that optimization in issue37319?
Yes, but to fix the bug it needs to occur earlier in the code (currently line
314):
if stop is None and step is _ONE: <-- Line 314
^^^^^^^^^^^^^^^^^ <-- Add this
And again later:
if istep == 1 and width > 0: <-- Line 348
^-- change to _ONE
As a standalone optimization, it wasn't worth it, but as a way to fix the bug
without a regression, it is reasonable.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com