From: Martin Panter Date: Mon, 31 Aug 2015 03:15:52 +0000 (+0000) Subject: Issue #24952: Clarify default argument of stack_size() in threading, _thread X-Git-Tag: v3.5.1rc1~427^2~47^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31e7f50d4cb756927a89d2d33eaf1b5a030be7a9;p=python Issue #24952: Clarify default argument of stack_size() in threading, _thread Patch from Mattip. --- diff --git a/Doc/library/_thread.rst b/Doc/library/_thread.rst index a787e2fd4b..7122861c45 100644 --- a/Doc/library/_thread.rst +++ b/Doc/library/_thread.rst @@ -93,7 +93,8 @@ It defines the following constants 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 (32 KiB). 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:`RuntimeError` is raised. If the specified stack size is invalid, a :exc:`ValueError` is raised and the stack size is unmodified. 32 KiB is currently the minimum supported stack size value to guarantee sufficient diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 5269994781..c56d707342 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -89,7 +89,8 @@ This module defines the following 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 (32 KiB). 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:`RuntimeError` is raised. If the specified stack size is invalid, a :exc:`ValueError` is raised and the stack size is unmodified. 32 KiB is currently the minimum supported stack size value to guarantee sufficient diff --git a/Misc/ACKS b/Misc/ACKS index 8ab9f7765c..9af7c98f04 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -888,6 +888,7 @@ Nick Mathewson Simon Mathieu Laura Matson Graham Matthews +mattip Martin Matusiak Dieter Maurer Daniel May diff --git a/Misc/NEWS b/Misc/NEWS index 0b46451837..0204090304 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -456,6 +456,9 @@ C API Documentation ------------- +- Issue #24952: Clarify the default size argument of stack_size() in + the "threading" and "_thread" modules. Patch from Mattip. + - Issue #24808: Update the types of some PyTypeObject fields. Patch by Joseph Weston.