[pypy-svn] r58876 - pypy/branch/2.5-merge/pypy/module/thread
arigo at codespeak.net
arigo at codespeak.net
Fri Oct 10 10:43:13 CEST 2008
Author: arigo
Date: Fri Oct 10 10:43:13 2008
New Revision: 58876
Modified:
pypy/branch/2.5-merge/pypy/module/thread/__init__.py
pypy/branch/2.5-merge/pypy/module/thread/app_thread.py
Log:
(fijal, arigo)
Dummy thread.stack_size() implementation, which is
needed to import e.g. 'threading'.
Modified: pypy/branch/2.5-merge/pypy/module/thread/__init__.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/module/thread/__init__.py (original)
+++ pypy/branch/2.5-merge/pypy/module/thread/__init__.py Fri Oct 10 10:43:13 2008
@@ -7,6 +7,7 @@
'exit': 'app_thread.exit',
'exit_thread': 'app_thread.exit', # obsolete synonym
'error': 'app_thread.error',
+ 'stack_size': 'app_thread.stack_size',
}
interpleveldefs = {
Modified: pypy/branch/2.5-merge/pypy/module/thread/app_thread.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/module/thread/app_thread.py (original)
+++ pypy/branch/2.5-merge/pypy/module/thread/app_thread.py Fri Oct 10 10:43:13 2008
@@ -5,3 +5,6 @@
"""This is synonymous to ``raise SystemExit''. It will cause the current
thread to exit silently unless the exception is caught."""
raise SystemExit
+
+def stack_size(size=0):
+ raise error("not implemented")
More information about the Pypy-commit
mailing list