Re: tracing function calls

2005-04-23 Thread Stormbringer
Thank you Fredrik ! With a little tweaking for the right indentation it should prove useful :) Fredrik Lundh wrote: > "Stormbringer" wrote: > > > I've been wondering if there is a mechanism similar to trace/untrace > > found in lisp, for example call trace(function-name) and whenever this > > func

Re: tracing function calls

2005-04-23 Thread Fredrik Lundh
"Stormbringer" wrote: I've been wondering if there is a mechanism similar to trace/untrace found in lisp, for example call trace(function-name) and whenever this function is called it will show its parameters to stdout def trace(func): def tracer(*args, **kwargs): print func.__name__