ischium/xtraceback — Issue #1: xtraceback v0.3: function return types differ after monkey patching
Author: sniffer
Created: 2011-10-21 10:24:13+00:00
State: open

For example format_exc() returns a list instead of a string.

This should expain all:

```
>>> import traceback
>>> try:
... raise Exception("asdasd")
... except:
... traceback.format_exc()
...
'Traceback (most recent call last):\n File "", line 2, in \nException: asdasd\n'
>>> try:
... raise Exception("asdasd")
... except:
... traceback.format_exc().splitlines()
...
['Traceback (most recent call last):', ' File "", line 2, in ', 'Exception: asdasd']
>>>
>>>
>>> import xtraceback
>>> xtraceback.compat.install()
>>> try:
... raise Exception("asdasd")
... except:
... traceback.format_exc()
...
['Traceback (most recent call last):\n', ' File "", line 2, in \n g:traceback = \n g:xtraceback = \n', 'Exception: asdasd\n']
```