xrange vs. range vs. range

Guy Goldberg on January 19, 2018

A simple question While I was teaching a class about iterators and generators, a student asked me a question that didn't seem so inter... [Read Full]
markdown guide

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


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


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


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

code of conduct - report abuse