How "expensive" are Exceptions?

Courageous jkraska at san.rr.com
Sun Mar 10 21:34:39 EST 2002


>Hi, given the fact that excpetion handling can be very
>expensive in languages like C++ - is python similar in
>this aspect?

No. In Python, exceptions are practically free in comparison.
They are implemented internally by sending back the appropriate
return code and setting an error node. 

C//




More information about the Python-list mailing list