Bugs item #1229680, was opened at 2005-06-29 15:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1229680&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Frank Cieslok (fcieslok)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tracing C function calls and keyword arguments

Initial Comment:
When a tracing/profiling function is registered via 

  'PyEval_SetTrace()' or 'PyEval_SetProfile()', 

calling registered C functions should lead to calls of
the tracing function with reason 

  'PyTrace_C_CALL' and 'PyTrace_C_RETURN'.

This does not work if the function call uses keyword
arguments (test case attached) ! 

The reason seems to be that in
'Python/ceval.c:call_function ()' the macro 'C_TRACE'
is used to wrap the calling of build-in functions into
the corresponding calls of the tracing function. This
does not apply if keyword arguments are used, in that
case 'do_call ()' is called directly without being
wrapped into that macro.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1229680&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to