Help on try-except

Matthew Burns burns.matthew at
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.


-----Original Message-----
From: at
[ at] On Behalf
Of python-list-request at
Sent: Tuesday, September 02, 2008 4:57 PM
To: python-list at
Subject: Python-list Digest, Vol 60, Issue 30

Send Python-list mailing list submissions to
	python-list at

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
	python-list-request at

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

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