Darren Dale wrote: > Fredrik Lundh wrote: > >> Darren Dale wrote: >> >>> I need to replace the following loop with a list comprehension: >>> >>> res=[0] >>> for i in arange(10000): >>> res[0]=res[0]+i >> >> why? >> >> </F> > > I explained why in the original post... or I guess I just implied it. The speedup is critical.