]> granicus.if.org Git - python/commitdiff
Issue #24952: Clarify default argument of stack_size() in threading, thread
authorMartin Panter <vadmium>
Mon, 31 Aug 2015 03:40:59 +0000 (03:40 +0000)
committerMartin Panter <vadmium>
Mon, 31 Aug 2015 03:40:59 +0000 (03:40 +0000)
Patch from Mattip.

Doc/library/thread.rst
Doc/library/threading.rst
Misc/ACKS
Misc/NEWS

index 8a625f8a5bb7bf7c4aa130cb275dc6be7791937e..f1cee24d8f362ac5faf0879e075bf7b2a99f3c86 100644 (file)
@@ -98,7 +98,8 @@ It defines the following constant and functions:
    Return the thread stack size used when creating new threads.  The optional
    *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
+   integer value of at least 32,768 (32kB). If *size* is not specified,
+   0 is used. If changing the thread stack size is
    unsupported, the :exc:`error` exception 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
index 04a6ebedea2691b13ed2a12715861cdd3bf327c0..ccb922b1bc885e02dfe2bf0d6e3c5c9affcd576b 100644 (file)
@@ -194,7 +194,8 @@ This module defines the following functions and objects:
    Return the thread stack size used when creating new threads.  The optional
    *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
+   integer value of at least 32,768 (32 KiB). If *size* is not specified,
+   0 is used.  If changing the thread stack size is
    unsupported, a :exc:`ThreadError` 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
index d732bf0fed8e29f13187900261205b224a9da52a..ba3e3fe64791a2b90b24823d348985dd6a4e7b83 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -875,6 +875,7 @@ Nick Mathewson
 Simon Mathieu
 Laura Matson
 Graham Matthews
+mattip
 Martin Matusiak
 Dieter Maurer
 Daniel May
index ebf2ed5c26454a04d31a5cdd757ed7578b1ad389..1cc3f1591f3fd9f2c41a23250f72c9abbbd96450 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -163,6 +163,9 @@ IDLE
 Documentation
 -------------
 
+- Issue #24952: Clarify the default size argument of stack_size() in
+  the "threading" and "thread" modules. Patch from Mattip.
+
 - Issue #20769: Improve reload() docs. Patch by Dorian Pula.
 
 - Issue #23589: Remove duplicate sentence from the FAQ.  Patch by Yongzhi Pan.