Skip to main content

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 details)

Uploaded Source

Built Distribution

traceback2-1.4.0-py2.py3-none-any.whl (16.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file traceback2-1.4.0.tar.gz.

File metadata

  • Download URL: traceback2-1.4.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for traceback2-1.4.0.tar.gz
Algorithm Hash digest
SHA256 05acc67a09980c2ecfedd3423f7ae0104839eccb55fc645773e1caa0951c3030
MD5 9e9723f4d70bfc6308fa992dd193c400
BLAKE2b-256 eb7fe20ba11390bdfc55117c8c6070838ec914e6f0053a602390a598057884eb

See more details on using hashes here.

File details

Details for the file traceback2-1.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for traceback2-1.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8253cebec4b19094d67cc5ed5af99bf1dba1285292226e98a31929f87a5d6b23
MD5 a9b6ac7b5ee15cc7c44b7473135a56d5
BLAKE2b-256 170a6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page