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

gc.enable

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


Import

import gc
from gc import enable

Signature & Overview

gc.enable()

Enable automatic garbage collection.

Usage

import gc

gc.enable()
assert gc.isenabled() is True

Gotchas

REPL Inspect

from gc import enable
help(enable)

Linked from

Related notes