gc.collect() code example
Example 1: force garbage collection in python
import gc
gc.collect()
Example 2: python garbaze collection
import gc
gc.get_count()
gc.get_threshold()
gc.get_referrers(obj)
import gc
gc.collect()
import gc
gc.get_count()
gc.get_threshold()
gc.get_referrers(obj)