Thanks very much. I found a good example of using sys.settrace at http://effbot.org/librarybook/sys.htm
Cheers, Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good, Bad or Neutral. http://www.latedecember.com/sites/moodnews/ -- http://mail.python.org/mailman/listinfo/python-list