/* Execute compiled code */
-/* XXX TO DO:
- XXX speed up searching for keywords by using a dictionary
- XXX document it!
- */
-
#define _PY_INTERPRETER
#include "Python.h"
PyObject **stack_pointer,
_Py_CODEUNIT *next_instr)
{
+ /* This dump_stack() operation is risky, since the repr() of some
+ objects enters the interpreter recursively. It is also slow.
+ So you might want to comment it out. */
dump_stack(frame, stack_pointer);
int oparg = _Py_OPARG(*next_instr);
int opcode = _Py_OPCODE(*next_instr);
fobj == NULL ||
!PyFunction_Check(fobj)
) {
- printf("\nResuming frame.");
+ printf("\nResuming frame.\n");
return;
}
PyFunctionObject *f = (PyFunctionObject *)fobj;