performance problem in python 2.2

John Hunter jdhunter at nitace.bsd.uchicago.edu
Fri Jul 26 16:31:32 EDT 2002


>>>>> "Jeff" == Jeff Davis <jdavis at empires.org> writes:
    Jeff> for i in range(1,c): 
                    ^
                  whole list in memory

for i in xrange(1,c): 
         ^
     slurps off the list as necessary

Should help quite a bit...

John Hunter



More information about the Python-list mailing list