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

Uploaded Source

Built Distribution

traceback2-1.2.0-py2.py3-none-any.whl (16.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for traceback2-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e84ff7d1f2553e3cfa4abc5b4db1e495fb34855bb373b7b05956131b11bf038c
MD5 ac7d1c651bcaeb6ca3e8a84c81a9914c
BLAKE2b-256 19a1e93c7dfaf8febeae61864edad0c2d08c22ed9ffcb518d76b82ddf9431c04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for traceback2-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 64b117eb130ce8906c69d8e2403ed070b5791e8958760a1ae80b83f5205256a4
MD5 788f9073916c3d86d6b678cf006d5c1b
BLAKE2b-256 05891c0ba8105dad4ff522f35d0614e424954bfba2262963d1c6ed673d578f16

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