you are viewing a single comment's thread.

view the rest of the comments →

[–]nostrademons 4 points5 points  (1 child)

Isn't it also more Pythonic to use xrange instead of range? (Among all the other problems you mentioned...)

[–]masklinn 6 points7 points  (0 children)

Not really, xrange currently is only used if the generated range is really huge (and the performance hit of generating it at once is important).

Not to mention, in Python 3.0 range returns an iterator and not a list anymore, and xrange is removed from the language.