Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for traceback2, version 1.4.0
Filename, size File type Python version Upload date Hashes
Filename, size traceback2-1.4.0-py2.py3-none-any.whl (16.8 kB) File type Wheel Python version 3.4 Upload date Hashes View hashes
Filename, size traceback2-1.4.0.tar.gz (15.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page