On this page
gc.get_debug
Prev: gc.get_count | Up: gc | Next: gc.get_freeze_count
Rel: gc.collect, gc.disable, gc.enable, gc.freeze
Ref: docs.python.org — gc.get_debug
Tags: #public #python3 #stdlib #gc
Import
import gc
from gc import get_debug
Signature & Overview
gc.get_debug()
Get the garbage collection debugging flags.
Usage
import gc
assert isinstance(gc.get_debug(), int)
Gotchas
- Returns the active
gc.DEBUG_*bitmask.
REPL Inspect
from gc import get_debug
help(get_debug)
Linked from
Related notes
- tuts/python3/stdlib_module/gc/get_count Linked here; links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_freeze_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/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_objects shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_referents shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_referrers shared tags: #gc, #stdlib