Alan Gauld wrote:
>> I can reproduce the problem on my Linux system, so it is not Mac
>> specific.  Using xrange makes no difference.
> 
> I believe that in recent Pythons (v2.3 onwards?) xrange is just 
> an alias for range since range was reimplementted to use 
> generators. So the old menory issues with range no longer 
> apply.

No, range() still returns a list, it is not a generator. That change is 
for Python 3.0.

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to