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 11/* Execute compiled code */
22
3- /* XXX TO DO:
4- XXX speed up searching for keywords by using a dictionary
5- XXX document it!
6- */
7-
83#define _PY_INTERPRETER
94
105#include "Python.h"
@@ -133,6 +128,9 @@ lltrace_instruction(_PyInterpreterFrame *frame,
133128 PyObject * * stack_pointer ,
134129 _Py_CODEUNIT * next_instr )
135130{
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. */
136134 dump_stack (frame , stack_pointer );
137135 int oparg = _Py_OPARG (* next_instr );
138136 int opcode = _Py_OPCODE (* next_instr );
@@ -155,7 +153,7 @@ lltrace_resume_frame(_PyInterpreterFrame *frame)
155153 fobj == NULL ||
156154 !PyFunction_Check (fobj )
157155 ) {
158- printf ("\nResuming frame." );
156+ printf ("\nResuming frame.\n " );
159157 return ;
160158 }
161159 PyFunctionObject * f = (PyFunctionObject * )fobj ;
You can’t perform that action at this time.
0 commit comments