RETIRED, further work has moved to Debian project infrastructure
Go to file
Berker Peksag 36d6f8b755 Add LICENSE
Closes #8
2016-02-23 21:41:44 +02:00
traceback2 Revert "Skip execution of filename encoding test on Py3" 2015-08-08 08:17:41 +03:00
.gitignore Supporting boilerplate. 2015-03-06 14:43:28 +13:00
.testr.conf Basic boilerplate. 2014-11-21 07:50:36 +13:00
.travis.yml Try to run tests in Python 2.6 2015-08-05 07:54:31 +03:00
AUTHORS Issue #24695: Fix a regression in traceback.print_exception() 2015-08-05 07:29:34 +03:00
LICENSE Add LICENSE 2016-02-23 21:41:44 +02:00
Makefile Supporting boilerplate. 2015-03-06 14:43:28 +13:00
README.rst Handle objects with broken __unicode__ 2015-03-09 13:31:29 +13:00
requirements.txt Time for 1.0.0. 2015-03-06 16:18:39 +13:00
setup.cfg Time for 1.0.0. 2015-03-06 16:18:39 +13:00
setup.py Basic boilerplate. 2014-11-21 07:50:36 +13:00
test-requirements.txt Port trunk traceback module to standalone w/3.5. 2014-11-21 09:58:04 +13:00

README.rst

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'.