diff options
author | Guido van Rossum <guido@python.org> | 1997-10-27 19:57:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-27 19:57:20 (GMT) |
commit | 9d37a4d332570792c054ecbd6c598cf5eb91d785 (patch) | |
tree | 581da3cce164895b857c8e45eda285c57fc8bb24 /Doc/lib/libpdb.tex | |
parent | 036309b13eefbcc009f44142e29a98cbe9e2a460 (diff) | |
download | cpython-9d37a4d332570792c054ecbd6c598cf5eb91d785.zip cpython-9d37a4d332570792c054ecbd6c598cf5eb91d785.tar.gz cpython-9d37a4d332570792c054ecbd6c598cf5eb91d785.tar.bz2 |
Small wording change about global and local trace functions.
Diffstat (limited to 'Doc/lib/libpdb.tex')
-rw-r--r-- | Doc/lib/libpdb.tex | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Doc/lib/libpdb.tex b/Doc/lib/libpdb.tex index 9785a40..fcd8849 100644 --- a/Doc/lib/libpdb.tex +++ b/Doc/lib/libpdb.tex @@ -258,8 +258,16 @@ or \code{'exception'} \end{description} -A trace function should return a new trace function or None. -Class methods are accepted (and most useful!) as trace methods. +The global trace function is invoked (with \var{event} set to +\code{'call'}) whenever a new local scope is entered; it should return +a reference to the local trace function to be used that scope, or +\code{None} if the scope shouldn't be traced. + +The local trace function should return a reference to itself (or to +another function for further tracing in that scope), or \code{None} to +turn off tracing in that scope. + +Instance methods are accepted (and very useful!) as trace functions. The events have the following meaning: |