Help on try-except

Matthew Burns burns.matthew at verizon.net
Wed Sep 3 19:51:45 CEST 2008


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: python-list-bounces+burns.matthew=verizon.net at python.org
[mailto:python-list-bounces+burns.matthew=verizon.net at python.org] On Behalf
Of python-list-request at python.org
Sent: Tuesday, September 02, 2008 4:57 PM
To: python-list at python.org
Subject: Python-list Digest, Vol 60, Issue 30

Send Python-list mailing list submissions to
	python-list at 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
	python-list-request at python.org

You can reach the person managing the list at
	python-list-owner at python.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Python-list digest..."




More information about the Python-list mailing list