[issue14306] try/except block is both efficient and expensive?

Ezio Melotti report at bugs.python.org
Wed Mar 14 22:44:21 CET 2012

Ezio Melotti <ezio.melotti at gmail.com> added the comment:

What it's trying to say is that in case the operation in the "try" block succeeds there's almost no overhead, so it's very efficient.  On the other hand, raising and then catching the error is expensive.

nosy: +ezio.melotti

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list