[Tutor] xrange

elis aeris hunter92383 at gmail.com
Wed Mar 19 04:41:45 CET 2008


Oh i am good with range then, because it's not a real time program.



On Tue, Mar 18, 2008 at 3:55 PM, Shrutarshi Basu <technorapture at gmail.com>
wrote:

> I'm not entirely sure about this, but I think for range(), the entire
> range of numbers is generated at one go, which could cause a
> slow-down. But xrange() generates the list of numbers one at a time.
> For a thousand, there shouldn't be much of a difference, but if you
> need a million or so go with xrange()
> Basu
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080318/1ed27453/attachment.htm 


More information about the Tutor mailing list