Staging
v0.5.1
https://github.com/python/cpython
Revision e46a8af450210ee5c7f0459ad6beddbc626ae60f authored by Nathaniel J. Smith on 07 January 2018, 13:30:18 UTC, committed by Nick Coghlan on 07 January 2018, 13:30:18 UTC
Third party projects may wish to hide their own internal machinery in
order to present more comprehensible tracebacks to end users
(e.g. Jinja2 and Trio both do this).

Previously such projects have had to rely on ctypes to do so:

  https://github.com/pallets/jinja/blob/fe3dadacdf4cf411d0a5b6bbd4d5234697a28af2/jinja2/debug.py#L345
  https://github.com/python-trio/trio/blob/1e86b1aee8c0c759f6f239ae53a05d0d3963c629/trio/_core/_multierror.py#L296

This provides a Python level API for creating and modifying real
Traceback objects, allowing tracebacks to be edited at runtime.

Patch by Nathaniel Smith.
1 parent d327ae6
History
Tip revision: e46a8af450210ee5c7f0459ad6beddbc626ae60f authored by Nathaniel J. Smith on 07 January 2018, 13:30:18 UTC
bpo-30579: Allow TracebackType creation and tb_next mutation from Python (GH-4793)
Tip revision: e46a8af
File Mode Size
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
.gitattributes -rw-r--r-- 733 bytes
.gitignore -rw-r--r-- 1.5 KB
.hgeol -rw-r--r-- 1.0 KB
.hgignore -rw-r--r-- 1.3 KB
.hgtags -rw-r--r-- 8.7 KB
.travis.yml -rw-r--r-- 4.4 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 60.2 KB
README.rst -rw-r--r-- 9.1 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.2 KB
config.sub -rwxr-xr-x 35.7 KB
configure -rwxr-xr-x 473.2 KB
configure.ac -rw-r--r-- 157.0 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 41.4 KB
setup.py -rw-r--r-- 98.6 KB

README.rst

back to top