changeset: 97560:79afd50396c5 branch: 2.7 parent: 97556:62a3c600f3cf user: Martin Panter date: Mon Aug 31 03:40:59 2015 +0000 files: Doc/library/thread.rst Doc/library/threading.rst Misc/ACKS Misc/NEWS description: Issue #24952: Clarify default argument of stack_size() in threading, thread Patch from Mattip. diff -r 62a3c600f3cf -r 79afd50396c5 Doc/library/thread.rst --- a/Doc/library/thread.rst Sun Aug 30 14:48:42 2015 -0700 +++ b/Doc/library/thread.rst Mon Aug 31 03:40:59 2015 +0000 @@ -98,7 +98,8 @@ 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 diff -r 62a3c600f3cf -r 79afd50396c5 Doc/library/threading.rst --- a/Doc/library/threading.rst Sun Aug 30 14:48:42 2015 -0700 +++ b/Doc/library/threading.rst Mon Aug 31 03:40:59 2015 +0000 @@ -194,7 +194,8 @@ 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 diff -r 62a3c600f3cf -r 79afd50396c5 Misc/ACKS --- a/Misc/ACKS Sun Aug 30 14:48:42 2015 -0700 +++ b/Misc/ACKS Mon Aug 31 03:40:59 2015 +0000 @@ -875,6 +875,7 @@ Simon Mathieu Laura Matson Graham Matthews +mattip Martin Matusiak Dieter Maurer Daniel May diff -r 62a3c600f3cf -r 79afd50396c5 Misc/NEWS --- a/Misc/NEWS Sun Aug 30 14:48:42 2015 -0700 +++ b/Misc/NEWS Mon Aug 31 03:40:59 2015 +0000 @@ -163,6 +163,9 @@ 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.