@@ -14,55 +14,6 @@ PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int, int *, P
1414// Export for 'pyexact' shared extension
1515PyAPI_FUNC (void ) _PyTraceback_Add (const char * , const char * , int );
1616
17- /* Write the Python traceback into the file 'fd'. For example:
18-
19- Traceback (most recent call first):
20- File "xxx", line xxx in <xxx>
21- File "xxx", line xxx in <xxx>
22- ...
23- File "xxx", line xxx in <xxx>
24-
25- This function is written for debug purpose only, to dump the traceback in
26- the worst case: after a segmentation fault, at fatal error, etc. That's why,
27- it is very limited. Strings are truncated to 100 characters and encoded to
28- ASCII with backslashreplace. It doesn't write the source code, only the
29- function name, filename and line number of each frame. Write only the first
30- 100 frames: if the traceback is truncated, write the line " ...".
31-
32- This function is signal safe. */
33-
34- extern void _Py_DumpTraceback (
35- int fd ,
36- PyThreadState * tstate );
37-
38- /* Write the traceback of all threads into the file 'fd'. current_thread can be
39- NULL.
40-
41- Return NULL on success, or an error message on error.
42-
43- This function is written for debug purpose only. It calls
44- _Py_DumpTraceback() for each thread, and so has the same limitations. It
45- only write the traceback of the first 100 threads: write "..." if there are
46- more threads.
47-
48- If current_tstate is NULL, the function tries to get the Python thread state
49- of the current thread. It is not an error if the function is unable to get
50- the current Python thread state.
51-
52- If interp is NULL, the function tries to get the interpreter state from
53- the current Python thread state, or from
54- _PyGILState_GetInterpreterStateUnsafe() in last resort.
55-
56- It is better to pass NULL to interp and current_tstate, the function tries
57- different options to retrieve this information.
58-
59- This function is signal safe. */
60-
61- extern const char * _Py_DumpTracebackThreads (
62- int fd ,
63- PyInterpreterState * interp ,
64- PyThreadState * current_tstate );
65-
6617/* Write a Unicode object into the file descriptor fd. Encode the string to
6718 ASCII using the backslashreplace error handler.
6819
0 commit comments