title: How to profile exception handling in Python?
body: <p>Is there a way to find out how many exceptions are thrown (and caught) and maybe how much time exception handling took?</p>
  
  <p>I'm using <a href="http://pyparsing.wikispaces.com/" rel="nofollow">pyparsing</a> (slightly modified) which relies heavily on exceptions and I want to find out (or at least estimate) if it would be worth the effort to rewrite it to work without exceptions.</p>
  
  <p>Raising and catching of exceptions is widely scattered over the module so I'm searching a way which doesn't need to modify each try-except-block</p>