Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31e7f50

Browse files
author
Martin Panter
committed
Issue #24952: Clarify default argument of stack_size() in threading, _thread
Patch from Mattip.
1 parent 0612ffe commit 31e7f50

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

Doc/library/_thread.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ It defines the following constants and functions:
9393
Return the thread stack size used when creating new threads. The optional
9494
*size* argument specifies the stack size to be used for subsequently created
9595
threads, and must be 0 (use platform or configured default) or a positive
96-
integer value of at least 32,768 (32 KiB). If changing the thread stack size is
96+
integer value of at least 32,768 (32 KiB). If *size* is not specified,
97+
0 is used. If changing the thread stack size is
9798
unsupported, a :exc:`RuntimeError` is raised. If the specified stack size is
9899
invalid, a :exc:`ValueError` is raised and the stack size is unmodified. 32 KiB
99100
is currently the minimum supported stack size value to guarantee sufficient

Doc/library/threading.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ This module defines the following functions:
8989
Return the thread stack size used when creating new threads. The optional
9090
*size* argument specifies the stack size to be used for subsequently created
9191
threads, and must be 0 (use platform or configured default) or a positive
92-
integer value of at least 32,768 (32 KiB). If changing the thread stack size is
92+
integer value of at least 32,768 (32 KiB). If *size* is not specified,
93+
0 is used. If changing the thread stack size is
9394
unsupported, a :exc:`RuntimeError` is raised. If the specified stack size is
9495
invalid, a :exc:`ValueError` is raised and the stack size is unmodified. 32 KiB
9596
is currently the minimum supported stack size value to guarantee sufficient

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ Nick Mathewson
888888
Simon Mathieu
889889
Laura Matson
890890
Graham Matthews
891+
mattip
891892
Martin Matusiak
892893
Dieter Maurer
893894
Daniel May

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,9 @@ C API
456456
Documentation
457457
-------------
458458

459+
- Issue #24952: Clarify the default size argument of stack_size() in
460+
the "threading" and "_thread" modules. Patch from Mattip.
461+
459462
- Issue #24808: Update the types of some PyTypeObject fields. Patch by
460463
Joseph Weston.
461464

0 commit comments

Comments
 (0)