[Python-Dev] trace.py in std library?

Jeremy Hylton jeremy@alum.mit.edu
Wed, 11 Dec 2002 18:32:42 -0500


There's a trace.py script sitting in Tools/scripts that works when
imported.  I used it today to add code coverage to Zope's test runner
script.  It took about 30 min. (mostly fixing bugs in trace.py) and
seems to work pretty well.

Why don't we put this script in the std library so it can actually be
imported?

I can guess at some of the reasons.  The code looks very complicated
and has been updated piecemeal by many people of the years.  The last
update has a bunch of comments with Zooko's name on them and a date.
They seem like XXX comments.

It might be nice to clean it up before putting in the library, but
I'd be in favor of having some minimally functional tool in the
library regardless.

Jeremy