Backports of the traceback module
Project description
A backport of traceback to older supported Pythons.
>>> import traceback2 as traceback
Profit.
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’.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
traceback2-1.2.0.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for traceback2-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64b117eb130ce8906c69d8e2403ed070b5791e8958760a1ae80b83f5205256a4 |
|
MD5 | 788f9073916c3d86d6b678cf006d5c1b |
|
BLAKE2b-256 | 05891c0ba8105dad4ff522f35d0614e424954bfba2262963d1c6ed673d578f16 |