Skip to content

Commit 14d237c

Browse files
Garbage Collection using gc module and methods like isenabled(),enable(),disable().
1 parent 9ee4bf5 commit 14d237c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: GarbageCollection.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#Garbage Collection
2+
3+
import gc
4+
print(gc.isenabled())
5+
gc.disable()
6+
print(gc.isenabled())
7+
gc.enable()
8+
print(gc.isenabled())

0 commit comments

Comments
 (0)