Kaydet (Commit) 9d37a4d3 authored tarafından Guido van Rossum's avatar Guido van Rossum

Small wording change about global and local trace functions.

üst 036309b1
...@@ -258,8 +258,16 @@ or \code{'exception'} ...@@ -258,8 +258,16 @@ or \code{'exception'}
\end{description} \end{description}
A trace function should return a new trace function or None. The global trace function is invoked (with \var{event} set to
Class methods are accepted (and most useful!) as trace methods. \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: The events have the following meaning:
......
...@@ -258,8 +258,16 @@ or \code{'exception'} ...@@ -258,8 +258,16 @@ or \code{'exception'}
\end{description} \end{description}
A trace function should return a new trace function or None. The global trace function is invoked (with \var{event} set to
Class methods are accepted (and most useful!) as trace methods. \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: The events have the following meaning:
......
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