| gc | index (built-in) |
This module provides access to the garbage collector for reference cycles.
enable() -- Enable automatic garbage collection.
disable() -- Disable automatic garbage collection.
isenabled() -- Returns true if automatic collection is enabled.
collect() -- Do a full collection right now.
set_debug() -- Set debugging flags.
get_debug() -- Get debugging flags.
set_threshold() -- Set the collection thresholds.
get_threshold() -- Return the current the collection thresholds.
| Functions | ||
| ||
| Data | ||
| DEBUG_COLLECTABLE = 2 DEBUG_INSTANCES = 8 DEBUG_LEAK = 62 DEBUG_OBJECTS = 16 DEBUG_SAVEALL = 32 DEBUG_STATS = 1 DEBUG_UNCOLLECTABLE = 4 __name__ = 'gc' garbage = [] | ||