Provide dummy (do-nothing) settrace() and setprofile() functions until

Jeremy can check in the real things.
This commit is contained in:
Tim Peters 2003-06-29 16:50:06 +00:00
parent 2740944361
commit 685e69739e
2 changed files with 13 additions and 1 deletions

View file

@ -14,7 +14,8 @@ from traceback import print_exc as _print_exc
# Rename some stuff so "from threading import *" is safe
__all__ = ['activeCount', 'Condition', 'currentThread', 'enumerate', 'Event',
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer']
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread',
'Timer', 'setprofile', 'settrace']
_start_new_thread = thread.start_new_thread
_allocate_lock = thread.allocate_lock
@ -600,6 +601,13 @@ def enumerate():
_active_limbo_lock.release()
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