Backports of the traceback module
A backport of traceback to older supported Pythons.
>>> import traceback2 as traceback
Things to be aware of!
In Python 2.x, unlike traceback, traceback2 creates unicode output (because it depends on the linecache2 module).
Exception frame clearing silently does nothing if the interpreter in use does not support it.
traceback2._some_str, which while not an official API is so old its likely in use behaves similarly to the Python3 version - objects where unicode(obj) fails but str(object) works will be shown as b’thestrvaluerepr’.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Hash SHA256 Hash Help||Version||File Type||Upload Date|
(16.8 kB) Copy SHA256 Hash SHA256
|3.4||Wheel||Mar 9, 2015|
(15.9 kB) Copy SHA256 Hash SHA256
|–||Source||Mar 9, 2015|