one-second icon indicating copy to clipboard operation
one-second copied to clipboard

The use of range/xrange is confusing

Open SylvainDe opened this issue 9 years ago • 4 comments

Not sure if it really matters but it might fit huge numbers : both range and xrange are used making things a bit confusing. Is there any particular reason for this?

SylvainDe avatar Oct 25 '15 07:10 SylvainDe

Unlikely!

kamalmarhubi avatar Oct 25 '15 19:10 kamalmarhubi

(It's also unlikely it makes a huge difference, but things would be better if they were consistent.)

kamalmarhubi avatar Oct 25 '15 19:10 kamalmarhubi

(I will check if it makes a difference though!)

kamalmarhubi avatar Oct 25 '15 19:10 kamalmarhubi

I found this in 2023 and the use of xrange seemed archaic. I thought that you were just trying to emphasize the point that it isn't creating a list and then iterating over it (as Python 2 range did).

jpivarski avatar Feb 02 '23 18:02 jpivarski