inline exception handling in python
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Fri Aug 13 01:42:01 EDT 2010
On Thu, 12 Aug 2010 14:19:13 -0400, wheres pythonmonks wrote:
> I think the problem in my case is best solved by look before you leap,
> or a wrapper function. [I just hate function call overhead for this. ]
Sounds suspiciously like premature micro-optimization to me. Function
call overhead is tiny compared to the cost of catching an exception, and
probably of a similar cost to looking before you leap.
--
Steven
More information about the Python-list
mailing list