Inada Naoki <songofaca...@gmail.com> added the comment:
I agree that 1<<1000 is artificial example. But isn't this patch affects more regular patterns like [[] for _ in range(10000)]? If we reject this, shouldn't we revert GH-22479 too? I believe iterating range object is much more common use case than range.index. ---------- _______________________________________ 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