[Q] Are Exceptions used that much in practice?

Tim Peters tim.one at home.com
Wed Dec 13 04:42:23 CET 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