On Friday 29 September 2006 08:34, Larry Hastings wrote: > It would still blow up if you ran > s = "" > for i in range(10000000): > s = "a" + s
This is a pretty small change but I would suggest xrange instead of range. That way you don't allocate that large list just to throw all the items away. In this case xrange will probably be faster then range also. -- http://mail.python.org/mailman/listinfo/python-list