Controlling Python

M.-A. Lemburg mal at
Wed Aug 18 12:19:37 CEST 1999

nriedlin at wrote:
> > You can use a callback which you can register with the
> > sys.settrace() function. A less fine-grained hook is available
> > through sys.setprofile(). See the docs for more infos.
> >
> You are correct, but isn't it true, that the callback is only called
> every function call? I would like to interfere every line (and so being
> able to trace my scripts). Please correct me if I'm wrong.

Please read the docs or simply try the hints I gave you...
sys.settrace() is what you want, BTW.

Marc-Andre Lemburg
Y2000:                                                   135 days left
Python Pages:                 

More information about the Python-list mailing list