[New-bugs-announce] [issue24743] Make _PyTraceback_Add public

Michael Ensslin report at bugs.python.org
Tue Jul 28 14:02:34 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue24743>
_______________________________________


More information about the New-bugs-announce mailing list