On this page
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
- Enabled by default at interpreter startup.
REPL Inspect
from gc import enable
help(enable)
Linked from
- tuts/python3/stdlib_module/gc
- tuts/python3/stdlib_module/gc/collect
- tuts/python3/stdlib_module/gc/disable
- tuts/python3/stdlib_module/gc/freeze
- tuts/python3/stdlib_module/gc/get_count
- tuts/python3/stdlib_module/gc/get_debug
- tuts/python3/stdlib_module/gc/get_freeze_count
- tuts/python3/stdlib_module/gc/get_objects
- tuts/python3/stdlib_module/gc/get_referents
- tuts/python3/stdlib_module/gc/get_referrers
- tuts/python3/stdlib_module/gc/get_stats
- tuts/python3/stdlib_module/gc/get_threshold
- tuts/python3/stdlib_module/gc/is_finalized
- tuts/python3/stdlib_module/gc/is_tracked
- tuts/python3/stdlib_module/gc/isenabled
- tuts/python3/stdlib_module/gc/set_debug
- tuts/python3/stdlib_module/gc/set_threshold
- tuts/python3/stdlib_module/gc/unfreeze
Related notes
- tuts/python3/stdlib_module/gc/collect Linked here; links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/disable Linked here; links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/freeze Linked here; links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_count Linked here; links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/gc/get_debug links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_freeze_count links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_objects links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_referents links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_referrers links to this page; shared tags: #gc, #stdlib