Admit that we'll never add the args for a "call" event to the profile

and trace functions; this now declares that None will be passed for the
"call" event.
This closes SF bug/suggestion #460315.
This commit is contained in:
Fred Drake 2001-09-13 16:56:43 +00:00
parent 02fac83ba1
commit b9a96282f1
2 changed files with 9 additions and 11 deletions

View file

@ -2,7 +2,6 @@
/* Execute compiled code */
/* XXX TO DO:
XXX how to pass arguments to profile and trace functions?
XXX speed up searching for keywords by using a dictionary
XXX document it!
*/
@ -605,7 +604,6 @@ eval_frame(PyFrameObject *f)
whenever an exception is detected. */
if (call_trace(tstate->c_tracefunc, tstate->c_traceobj,
f, PyTrace_CALL, Py_None)) {
/* XXX Need way to compute arguments?? */
/* Trace function raised an error */
return NULL;
}
@ -616,7 +614,6 @@ eval_frame(PyFrameObject *f)
if (call_trace(tstate->c_profilefunc,
tstate->c_profileobj,
f, PyTrace_CALL, Py_None)) {
/* XXX Need way to compute arguments?? */
/* Profile function raised an error */
return NULL;
}