import gc
print(gc.isenabled())
output
True
example2:
import gc
print(gc.isenabled())
gc.disable()
print(gc.isenabled())
output:
True
False
print(gc.isenabled())
output
True
example2:
import gc
print(gc.isenabled())
gc.disable()
print(gc.isenabled())
output:
True
False