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’.
Release files for traceback2 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| traceback2-1.4.0.tar.gz | 15.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| traceback2-1.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 32.7 kB
Release files / traceback2-1.4.0.tar.gz
| Download URL | traceback2-1.4.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05acc67a09980c2ecfedd3423f7ae0104839eccb55fc645773e1caa0951c3030
|
|
BLAKE2b-256 checksum How to use checksums |
eb7fe20ba11390bdfc55117c8c6070838ec914e6f0053a602390a598057884eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / traceback2-1.4.0-py2.py3-none-any.whl
| Download URL | traceback2-1.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8253cebec4b19094d67cc5ed5af99bf1dba1285292226e98a31929f87a5d6b23
|
|
BLAKE2b-256 checksum How to use checksums |
170a6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |