Howto MACRO in python ?

Andrew Bennetts andrew-pythonlist at puzzling.org
Tue Aug 12 08:49:03 EDT 2003


On Tue, Aug 12, 2003 at 02:28:31PM +0200, Bill Loren wrote:
> Welp, I'm trying to implement some kind of tracing mechanism which will
> announce every function entrance
> in Run-Time.
> I wrote a trace function:
[...]

You don't need macros for this.  Use sys.settracehook.

-Andrew.






More information about the Python-list mailing list