title: Extract traceback info from an exception object
body: <p>Given an Exception object (of unknown origin) is there way to obtain its traceback? I have code like this:</p>
  
  <pre><code>def stuff():
     try:
         .....
         return useful
     except Exception as e:
         return e
  
  result = stuff()
  if isinstance(result, Exception):
      result.traceback &lt;-- How?
  </code></pre>
  
  <p>How can I extract the traceback from the Exception object once I have it?</p>