File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
/* Execute compiled code */
2
2
3
- /* XXX TO DO:
4
- XXX speed up searching for keywords by using a dictionary
5
- XXX document it!
6
- */
7
-
8
3
#define _PY_INTERPRETER
9
4
10
5
#include "Python.h"
@@ -133,6 +128,9 @@ lltrace_instruction(_PyInterpreterFrame *frame,
133
128
PyObject * * stack_pointer ,
134
129
_Py_CODEUNIT * next_instr )
135
130
{
131
+ /* This dump_stack() operation is risky, since the repr() of some
132
+ objects enters the interpreter recursively. It is also slow.
133
+ So you might want to comment it out. */
136
134
dump_stack (frame , stack_pointer );
137
135
int oparg = _Py_OPARG (* next_instr );
138
136
int opcode = _Py_OPCODE (* next_instr );
@@ -155,7 +153,7 @@ lltrace_resume_frame(_PyInterpreterFrame *frame)
155
153
fobj == NULL ||
156
154
!PyFunction_Check (fobj )
157
155
) {
158
- printf ("\nResuming frame." );
156
+ printf ("\nResuming frame.\n " );
159
157
return ;
160
158
}
161
159
PyFunctionObject * f = (PyFunctionObject * )fobj ;
You can’t perform that action at this time.
0 commit comments