New submission from Michael Ensslin:

Python 3.4.3 introduced an internal function, _PyTraceback_Add, which is quite 
useful when constructing Python exception objects.

I'm using it when constructing a Python Exception object from a C++ exception 
object, to add "fake traceback frames" that contain the line number / file name 
where the C++ exception has occurred.

The function is exported via Python.h, but unfortunately it seems undocumented, 
and must thus be considered unstable; I request to change that.

----------
components: Extension Modules
messages: 247521
nosy: mic-e
priority: normal
severity: normal
status: open
title: Make _PyTraceback_Add public
type: enhancement
versions: Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24743>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to