[Python-checkins] CVS: python/dist/src/Python ceval.c,2.274,2.275

Fred L. Drake fdrake@users.sourceforge.net
Thu, 13 Sep 2001 09:56:46 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv11950/Python

Modified Files:
	ceval.c 
Log Message:

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.


Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.274
retrieving revision 2.275
diff -C2 -d -r2.274 -r2.275
*** ceval.c	2001/09/12 19:19:18	2.274
--- ceval.c	2001/09/13 16:56:43	2.275
***************
*** 3,7 ****
  
  /* 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!
--- 3,6 ----
***************
*** 606,610 ****
  			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;
--- 605,608 ----
***************
*** 617,621 ****
  				       tstate->c_profileobj,
  				       f, PyTrace_CALL, Py_None)) {
- 				/* XXX Need way to compute arguments?? */
  				/* Profile function raised an error */
  				return NULL;
--- 615,618 ----