Overflow exceptions are slow!

Skip Montanaro skip at pobox.com
Sun Dec 8 14:21:48 EST 2002


    aahz> In Python 2.2, compare the following two loops for speed:
    aahz> print "Starting loop 1"
    aahz> start = time.clock()
    aahz> L1 = []
    aahz> for i in loop:
    ...

What is the value of the object named "loop"?

-- 
Skip Montanaro - skip at pobox.com
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list