mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Document sys.settrace().
This commit is contained in:
parent
91ece4205b
commit
35dcf454e1
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue