Commit 35dcf454 authored by Guido van Rossum's avatar Guido van Rossum

Document sys.settrace().

parent 91ece420
...@@ -107,8 +107,7 @@ How it works ...@@ -107,8 +107,7 @@ How it works
============ ============
Some changes were made to the interpreter: Some changes were made to the interpreter:
- if sys.trace is defined (by the user) and not None, it should be a function - sys.settrace(func) sets the global trace function
- sys.trace is called the global trace function
- there can also a local trace function (see later) - there can also a local trace function (see later)
Trace functions have three arguments: (frame, event, arg) Trace functions have three arguments: (frame, event, arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment