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.4.0.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for traceback2-1.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8253cebec4b19094d67cc5ed5af99bf1dba1285292226e98a31929f87a5d6b23 |
|
MD5 | a9b6ac7b5ee15cc7c44b7473135a56d5 |
|
BLAKE2b-256 | 170a6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e |