kamalmarhubi / one-second

Fun performance game!
http://computers-are-fast.github.io/
387 stars 22 forks source link

The use of range/xrange is confusing #3

Open SylvainDe opened 8 years ago

SylvainDe commented 8 years ago

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?

kamalmarhubi commented 8 years ago

Unlikely!

kamalmarhubi commented 8 years ago

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

kamalmarhubi commented 8 years ago

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

jpivarski commented 1 year ago

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