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

Uploaded Source

Built Distribution

traceback2-1.1.0-py2.py3-none-any.whl (16.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for traceback2-1.1.0.tar.gz
Algorithm Hash digest
SHA256 da8ae8cb0ef57a8f7d8c38206bb670cd37719d3b175b2a92d71f4e61251075a0
MD5 1083f6353b7b373fc0838eaf462369f3
BLAKE2b-256 8600e5e2a2de62ca03597f44bc93e15e06ee771fbd5ffd4c780487ffcad02e1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for traceback2-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b9dff3041689d2d9f93c0111de67c77815c27518d0d7547b25de124543fd9832
MD5 3f7378a1cea6c3cc4303d4f3f909ee7d
BLAKE2b-256 65c1c870b2e71c6a76597b7ca4b9fc10826bd24fb53bf1e1c6f0bbe08e061a64

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