mirror of
https://github.com/python/cpython.git
synced 2025-11-18 18:31:56 +00:00
gh-106320: Remove private _PyTraceback functions (#108453)
Move private functions to the internal C API (pycore_traceback.h): * _Py_DisplaySourceLine() * _PyTraceback_Add()
This commit is contained in:
parent
d6ac5c7b10
commit
546cab8444
5 changed files with 13 additions and 8 deletions
|
|
@ -8,6 +8,12 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
// Export for '_ctypes' shared extension
|
||||
PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int, int *, PyObject **);
|
||||
|
||||
// Export for 'pyexact' shared extension
|
||||
PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);
|
||||
|
||||
/* Write the Python traceback into the file 'fd'. For example:
|
||||
|
||||
Traceback (most recent call first):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue