How "expensive" are Exceptions?

Courageous jkraska at san.rr.com
Sun Mar 10 23:03:06 EST 2002


>> exceptions, too.  This is the major cost of exception-handling
>> in Python:  checking every return value.  (Good C++ compilers
>> cleverly avoid this cost; Python doesn't, alas.)  

But it's really irrelevant in any case. The cost doesn't contribute
in any significant measurable way to the execution time of a Python
program, I'd say.

C//




More information about the Python-list mailing list