Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 19896:0491ea611bc4 legacy-trunk
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.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 13 Sep 2001 16:56:43 +0000 |
| parents | 31fe8b3e276b |
| children | 3faabf54b8b8 |
line wrap: on
line diff
--- a/Python/ceval.c Thu Sep 13 15:05:08 2001 +0000 +++ b/Python/ceval.c Thu Sep 13 16:56:43 2001 +0000 @@ -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 @@ 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 @@ 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; }
