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

gc.get_threshold

Prev: gc.get_stats | Up: gc | Next: gc.is_finalized
Rel: gc.collect, gc.disable, gc.enable, gc.freeze
Ref: docs.python.org — gc.get_threshold
Tags: #public #python3 #stdlib #gc


Import

import gc
from gc import get_threshold

Signature & Overview

gc.get_threshold()

Return the current collection thresholds.

Usage

import gc

t0, t1, t2 = gc.get_threshold()
assert t0 > 0

Gotchas

REPL Inspect

from gc import get_threshold
help(get_threshold)

Linked from

Related notes