On this page
  1. threading.stack_size
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

threading.stack_size

Prev: threading.settrace_all_threads | Up: threading | Next: threading.Thread
Rel: threading.active_count, threading.Barrier, threading.BoundedSemaphore, threading.BrokenBarrierError
Ref: docs.python.org — threading.stack_size
Tags: #public #python3 #stdlib #threading


Import

import threading
from threading import stack_size

Signature & Overview

threading.stack_size(size=0, /)

Return the thread stack size used when creating new threads. The optional size argument specifies the stack size (in bytes) to be used for subsequently created threads, and must be 0 (use platform or

Usage

import threading

current = threading.stack_size()   # 0 means OS default
assert isinstance(current, int)

Gotchas

REPL Inspect

from threading import stack_size
help(stack_size)

Linked from

Related notes