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.3.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

traceback2-1.3.0-py2.py3-none-any.whl (16.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for traceback2-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f4007cce837febb53caf18a864c685f46c1c0a66ab808e240c7e9c0d656ae05f
MD5 f164951fe9dd4f7d4125ecf9797301bd
BLAKE2b-256 ad7d46d6fe21b5f0c1669daa2d5439445e7e1f51ded1e36f734982c53b061564

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for traceback2-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 300005f09197daa5c9bec8a4409bec83c32f1a4ef72214617f18d7a01f564ad3
MD5 5b338e86890d1bb70b0c2ab01997a228
BLAKE2b-256 704bb9f1564e949c918f1808b2c2146abdec16031acb84135e38851df8df6c54

See more details on using hashes here.

Supported by

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