summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2006-06-04 12:31:09 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2006-06-04 12:31:09 (GMT)
commit6539d2d3c758b507f10779e218d52d6c9f355025 (patch)
treed3677cd901f44e2341a50be45d8a3d2f6d1f4da6 /Lib/threading.py
parent7a071939d96702e13c377a5e7f87df7bf20391e5 (diff)
downloadcpython-6539d2d3c758b507f10779e218d52d6c9f355025.zip
cpython-6539d2d3c758b507f10779e218d52d6c9f355025.tar.gz
cpython-6539d2d3c758b507f10779e218d52d6c9f355025.tar.bz2
Patch #1454481: Make thread stack size runtime tunable.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index c27140d..5655dde 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -15,7 +15,7 @@ from collections import deque
# Rename some stuff so "from threading import *" is safe
__all__ = ['activeCount', 'Condition', 'currentThread', 'enumerate', 'Event',
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread',
- 'Timer', 'setprofile', 'settrace', 'local']
+ 'Timer', 'setprofile', 'settrace', 'local', 'stack_size']
_start_new_thread = thread.start_new_thread
_allocate_lock = thread.allocate_lock
@@ -713,6 +713,8 @@ def enumerate():
_active_limbo_lock.release()
return active
+from thread import stack_size
+
# Create the main thread object
_MainThread()