On this page
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
- Reports whether automatic cyclic garbage collection is enabled.
REPL Inspect
from gc import isenabled
help(isenabled)
Linked from
Related notes
- tuts/python3/stdlib_module/gc/is_tracked Linked here; links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/set_debug 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/collect Linked here; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/disable Linked here; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/enable Linked here; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/freeze Linked here; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_count shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_debug shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_freeze_count shared tags: #gc, #stdlib