DEV Community

Discussion on: xrange vs. range vs. range

Collapse
 
msoedov profile image
Alex Miasoiedov

range vs range and only range since python2 will be not maintained really soon

Collapse
 
coolgoose profile image
Alexandru Bucur

Still more than 2 years away + legacy projects that benefit from the info :)

Collapse
 
guy_gold profile image
Guy Goldberg

I suspect that indeed Python2 is going to be with us for much longer than 2 years...

Collapse
 
msoedov profile image
Alex Miasoiedov

Legacy py2 projects are very unlikely will benefit from a nano performance optimization