Howto MACRO in python ?

Bob Gailer bgailer at alum.rpi.edu
Tue Aug 12 14:17:59 EDT 2003


At 10:49 PM 8/12/2003 +1000, Andrew Bennetts wrote:

>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.

Having just read the docs on sys.settrace I am in the dark. This is a good 
example of documentation that is too terse and presumptive to be useful to 
those who are unfamiliar with the topic.

Can you provide or direct us to some better explanation?

Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003


More information about the Python-list mailing list