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

gc.isenabled

Prev: gc.is_tracked | Up: gc | Next: gc.set_debug
Rel: gc.collect, gc.disable, gc.enable, gc.freeze
Ref: docs.python.org — gc.isenabled
Tags: #public #python3 #stdlib #gc


Import

import gc
from gc import isenabled

Signature & Overview

gc.isenabled()

Returns true if automatic garbage collection is enabled.

Usage

import gc

assert isinstance(gc.isenabled(), bool)

Gotchas

REPL Inspect

from gc import isenabled
help(isenabled)

Linked from

Related notes