Strange range

Chris Angelico rosuav at gmail.com
Sat Apr 2 17:05:29 EDT 2016


On Sun, Apr 3, 2016 at 6:44 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> I don't have a problem with a list being a "reiterable." I only was
> surprised about range(), which I had thought to be a plain,
> down-to-earth iterator. There's barely any other practical use for a
> range, I believe.

That's Blub's Paradox right there. There are lots of other uses for
range(), but you just haven't used them.

ChrisA



More information about the Python-list mailing list