[Python-checkins] cpython: Replace ThreadError by RuntimeError: the former is now an obsolete alias of the

georg.brandl python-checkins at python.org
Thu Apr 5 09:53:00 CEST 2012


http://hg.python.org/cpython/rev/f3dda6b66204
changeset:   76114:f3dda6b66204
parent:      76112:64b8fdb0bfa9
user:        Georg Brandl <georg at python.org>
date:        Thu Apr 05 09:53:04 2012 +0200
summary:
  Replace ThreadError by RuntimeError: the former is now an obsolete alias of the latter.

files:
  Doc/library/_thread.rst   |  2 +-
  Doc/library/threading.rst |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/_thread.rst b/Doc/library/_thread.rst
--- a/Doc/library/_thread.rst
+++ b/Doc/library/_thread.rst
@@ -94,7 +94,7 @@
    *size* argument specifies the stack size to be used for subsequently created
    threads, and must be 0 (use platform or configured default) or a positive
    integer value of at least 32,768 (32kB). If changing the thread stack size is
-   unsupported, a :exc:`ThreadError` is raised.  If the specified stack size is
+   unsupported, a :exc:`RuntimeError` is raised.  If the specified stack size is
    invalid, a :exc:`ValueError` is raised and the stack size is unmodified.  32kB
    is currently the minimum supported stack size value to guarantee sufficient
    stack space for the interpreter itself.  Note that some platforms may have
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -174,7 +174,7 @@
    *size* argument specifies the stack size to be used for subsequently created
    threads, and must be 0 (use platform or configured default) or a positive
    integer value of at least 32,768 (32kB). If changing the thread stack size is
-   unsupported, a :exc:`ThreadError` is raised.  If the specified stack size is
+   unsupported, a :exc:`RuntimeError` is raised.  If the specified stack size is
    invalid, a :exc:`ValueError` is raised and the stack size is unmodified.  32kB
    is currently the minimum supported stack size value to guarantee sufficient
    stack space for the interpreter itself.  Note that some platforms may have

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list