The reason it takes so long is you are not using xrange The range function iterates through the entire data set EVERY time, regardless of whether it needs to This increases processer use EXPONENTIALLY as that number gets larger. I am not quite sure how xrange works, but it keeps only one number in memory at any time In fact, I never use range any more, I always use xrange.
ALL YOUR BASE ARE BELONG TO US http://allyourbase.planettribes.gamespy.com/video1_view.shtml -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, September 02, 2008 4:57 PM To: python-list@python.org Subject: Python-list Digest, Vol 60, Issue 30 Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/python-list or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Python-list digest..." -- http://mail.python.org/mailman/listinfo/python-list