From: Guido van Rossum Date: Fri, 27 Mar 1992 15:06:53 +0000 (+0000) Subject: Document sys.settrace(). X-Git-Tag: v0.9.8~464 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35dcf454e1a4b1b67820f5f9480ef7af6f4ea382;p=thirdparty%2FPython%2Fcpython.git Document sys.settrace(). --- diff --git a/Lib/pdb.doc b/Lib/pdb.doc index 7eb68d279d6d..0ae4c0e2e8eb 100644 --- a/Lib/pdb.doc +++ b/Lib/pdb.doc @@ -107,8 +107,7 @@ How it works ============ Some changes were made to the interpreter: -- if sys.trace is defined (by the user) and not None, it should be a function -- sys.trace is called the global trace function +- sys.settrace(func) sets the global trace function - there can also a local trace function (see later) Trace functions have three arguments: (frame, event, arg)