[Python-Dev] draft PEP: Trace and Profile Support for Threads

Brett Cannon drifty@alum.berkeley.edu
Tue, 22 Apr 2003 14:58:10 -0700 (PDT)


[Jeremy Hylton]

> I've been working a little on the trace module lately, trying to get it
> to work correctly with Zope.  One issue that remains open is how to
> handle multi-threaded programs.  The PEP below proposes a solution.
>

Seems reasonable to me.  Now if we just got rid of threads all together we
wouldn't have to worry about this.  =)

<snip - a lot of stuff>
> A trace function [3] is called with three arguments: a frame, an
> event, and an event-dependent argument.  The event is one of the
> following strings: "call," "line," "return," or "exception."  The C
> API defines trace function that takes an int instead of a string to
             ^
> define the trace event.
>

Need "a" here?  One one grammatical mistake?!?  Wish I could pull that off
once in the summaries.  =)

-Brett