[Python-checkins] CVS: python/dist/src/Doc/lib libsys.tex,1.52,1.53

Fred L. Drake fdrake@users.sourceforge.net
2001年10月16日 07:54:24 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv5859/lib
Modified Files:
	libsys.tex 
Log Message:
Added information about setprofile() and settrace() hooks being thread-
specific, and updated some of the comments about the profile hook.
This closes SF bug #471725.
Index: libsys.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsys.tex,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** libsys.tex	2001年09月04日 18:18:36	1.52
--- libsys.tex	2001年10月16日 14:54:22	1.53
***************
*** 370,374 ****
 is called similarly to the system's trace function (see
 \function{settrace()}), but it isn't called for each executed line
! of code (only on call and return and when an exception occurs).
 Also, its return value is not used, so it can simply return
 \code{None}.
--- 370,378 ----
 is called similarly to the system's trace function (see
 \function{settrace()}), but it isn't called for each executed line
! of code (only on call and return, but the return event is reported
! even when an exception has been set). The function is
! thread-specific, but there is no way for the profiler to know about
! context switches between threads, so it does not make sense to use
! this in the presence of multiple threads.
 Also, its return value is not used, so it can simply return
 \code{None}.
***************
*** 390,394 ****
 you to implement a Python source code debugger in Python. See
 section \ref{debugger-hooks}, ``How It Works,'' in the chapter on
! the Python debugger.\index{debugger}
 \end{funcdesc}
 
--- 394,401 ----
 you to implement a Python source code debugger in Python. See
 section \ref{debugger-hooks}, ``How It Works,'' in the chapter on
! the Python debugger.\index{debugger} The function is
! thread-specific; for a debugger to support multiple threads, it must
! be registered using \function{settrace()} for each thread being
! debugged.
 \end{funcdesc}
 

AltStyle によって変換されたページ (->オリジナル) /