summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-06-29 16:50:06 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-06-29 16:50:06 (GMT)
commit685e69739e2e985439ff616576ae63e3916e1481 (patch)
treee4de1c96dd87c367eedb1304f9bdaaa5c1267609 /Lib/threading.py
parent27409443612ff2719faa65c1205f7b020af22ded (diff)
downloadcpython-685e69739e2e985439ff616576ae63e3916e1481.zip
cpython-685e69739e2e985439ff616576ae63e3916e1481.tar.gz
cpython-685e69739e2e985439ff616576ae63e3916e1481.tar.bz2
Provide dummy (do-nothing) settrace() and setprofile() functions until
Jeremy can check in the real things.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 1c37963..7ec8eff 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -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