[Python-checkins] python/dist/src/Lib threading.py,1.32,1.33

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 29 Jun 2003 09:50:08 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv23543/python/Lib

Modified Files:
	threading.py 
Log Message:
Provide dummy (do-nothing) settrace() and setprofile() functions until
Jeremy can check in the real things.


Index: threading.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/threading.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** threading.py	27 Feb 2003 20:14:41 -0000	1.32
--- threading.py	29 Jun 2003 16:50:06 -0000	1.33
***************
*** 15,19 ****
  # Rename some stuff so "from threading import *" is safe
  __all__ = ['activeCount', 'Condition', 'currentThread', 'enumerate', 'Event',
!            'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer']
  
  _start_new_thread = thread.start_new_thread
--- 15,20 ----
  # Rename some stuff so "from threading import *" is safe
  __all__ = ['activeCount', 'Condition', 'currentThread', 'enumerate', 'Event',
!            'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread',
!            'Timer', 'setprofile', 'settrace']
  
  _start_new_thread = thread.start_new_thread
***************
*** 601,604 ****
--- 602,612 ----
      return active
  
+ # XXX This needs a real defintion.
+ def settrace(tracefunc):
+     pass
+ 
+ # XXX This needs a real defintion.
+ def setprofile(dispatchfunc):
+     pass
  
  # Create the main thread object