[Q] Are Exceptions used that much in practice?

Tim Peters tim.one at home.com
Tue Dec 12 22:42:23 EST 2000


[posted and mailed]

[Roy Katz]
> ...
> If you enclose statements in a try/except clause, and assuming no
> exception is thrown, what are the runtime penalties?

This varies widely across languages and language implementations, but in
CPython the penalties are minimal, in large part because CPython performs no
optimizations that make unwinding exceptions difficult.





More information about the Python-list mailing list