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

Uploaded Source

Built Distribution

traceback2-1.2.1-py2.py3-none-any.whl (16.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for traceback2-1.2.1.tar.gz
Algorithm Hash digest
SHA256 225c91dffa7dea504d2a0919b8cd39f161d01fcd5cf60d4e8889207efd39e610
MD5 d46423180a86ae7dba9c6b22836fdb0e
BLAKE2b-256 61a7e09d74857e1bd8c2b62bbcbe4c57115944ee9b2f3a90adeb8c5ee32d3e90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for traceback2-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c0629841f3f88a93202ef21fb24e30460c906383c0a5b778b69331f6508f11f
MD5 5affe0b2788bf1da3fc8d3e08b8c3f50
BLAKE2b-256 6f6c6ef315336e4cb717c39eefa1035f28c9e0a6c938f407338fb32a54ce3d8a

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