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 -- http://mail.python.org/mailman/listinfo/python-list